|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
org.cafesip.gwtcomp.client.ui.MessageBar
public class MessageBar
A message bar is a panel that can be added to any GWT panel/form/etc and is used to display informational, error, or warning messages. The message bar displays only one message at a time.
Screen-Shots:
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
| Field Summary | |
|---|---|
static int |
SEVERITY_ERROR
|
static int |
SEVERITY_INFORMATIONAL
|
static int |
SEVERITY_NONE
|
static int |
SEVERITY_WARNING
|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
MessageBar()
A constructor for this class. |
|
| Method Summary | |
|---|---|
void |
clearMessage()
Clears the message |
int |
getSeverity()
Returns the serverity of the currently-displayed message. |
String |
getText()
Returns the text of the message being displayed. |
boolean |
isAudioEnabled()
Returns whether audio messaging is enabled. |
void |
setAudioEnabled(boolean audioEnabled)
Sets audio messaging. |
void |
setMessage(String text)
Prints an informational message. |
void |
setMessage(String text,
int severity)
Prints a message with a given severity. |
void |
setSeverity(int severity)
Sets the severity of the currently-displayed message. |
void |
setText(String text)
Sets the text of the message. |
| Methods inherited from class com.google.gwt.user.client.ui.Composite |
|---|
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, setWidget |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addDomHandler, addHandler, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int SEVERITY_NONE
public static final int SEVERITY_INFORMATIONAL
public static final int SEVERITY_WARNING
public static final int SEVERITY_ERROR
| Constructor Detail |
|---|
public MessageBar()
| Method Detail |
|---|
public void setMessage(String text)
text - message to print.
public void setMessage(String text,
int severity)
text - message to print.severity - of the message (see the constants defined above).public void clearMessage()
public boolean isAudioEnabled()
public void setAudioEnabled(boolean audioEnabled)
audioEnabled - true if audio is enabled.public int getSeverity()
public void setSeverity(int severity)
severity - The severity to set.public String getText()
public void setText(String text)
text - The text to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||