|
||||||||||
| 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.sap.ui.core.client.ControlWidget
com.sap.ui.commons.client.MessageBarWidget
public class MessageBarWidget
The class MessageBar is the GWT wrapper
for the Phoenix control: sap.ui.commons.MessageBar.
Creates an instance of a "MessageBar" Control, for displaying "Message"s. There is no imposed limit on the number of "MessageBar"s that can be created, but using only 1 makes sense, specially if accessing it (via Ctl-m) becomes a necessity.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
|
MessageBarWidget()
constructs the class MessageBarWidget |
protected |
MessageBarWidget(MessageBar control)
constructs the class MessageBarWidget |
|
MessageBarWidget(String id)
constructs the class MessageBarWidget |
| Method Summary | |
|---|---|
void |
addMessages(com.sap.ui.core.client.js.JsArray<Message> aMessages)
To add message(s). |
void |
deleteAllMessages()
To deleted all messages. |
void |
deleteMessages(String[] ids)
To deleted messages. |
String |
getAnchorID()
Getter for property anchorID
Element ID upon which the 'message bar' is to be initially positioned. |
String |
getAnchorSnapPoint()
Getter for property anchorSnapPoint
Type: sap.ui.core.Popup.Dock
SnapPoint of MessageBar over anchorId. |
MessageBar |
getControl()
returns the reference to the Phoenix Control |
int |
getMaxListed()
Getter for property maxListed
Maximum number of messages being display in the List before a scrollbar appears. |
int |
getMaxToasted()
Getter for property maxToasted
Maximum number of simultaneous messages being toasting-up in a row. |
boolean |
isVisible()
Getter for property visible
Invisible controls are not rendered. |
void |
setAnchorID(String value)
Setter for property anchorID |
void |
setAnchorSnapPoint(String value)
Setter for property anchorSnapPointDefault value is: "begin top" |
void |
setMaxListed(int value)
Setter for property maxListedDefault value is: 7 |
void |
setMaxToasted(int value)
Setter for property maxToastedDefault value is: 3 |
void |
setVisible(boolean value)
Setter for property visibleDefault value is: true |
| Methods inherited from class com.sap.ui.core.client.ControlWidget |
|---|
destroy, doAttachChildren, doDetachChildren, isDesignTime, wrap |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, 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, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MessageBarWidget()
MessageBarWidget
public MessageBarWidget(String id)
MessageBarWidget
id - id of the MessageBarWidgetprotected MessageBarWidget(MessageBar control)
MessageBarWidget
control - reference to an existing MessageBar| Method Detail |
|---|
public MessageBar getControl()
Control
getControl in class com.sap.ui.core.client.ControlWidgetControlpublic String getAnchorID()
anchorID
Element ID upon which the 'message bar' is to be initially positioned.
public void setAnchorID(String value)
anchorID
value - Stringpublic boolean isVisible()
visible
Invisible controls are not rendered.
isVisible in class com.google.gwt.user.client.ui.UIObjectpublic void setVisible(boolean value)
visibletrue
setVisible in class com.google.gwt.user.client.ui.UIObjectvalue - booleanpublic int getMaxToasted()
maxToasted
Maximum number of simultaneous messages being toasting-up in a row. Value '0' means this dynamic part of the feature is switched off.
public void setMaxToasted(int value)
maxToasted3
value - intpublic int getMaxListed()
maxListed
Maximum number of messages being display in the List before a scrollbar appears. Value '0' means no limit.
public void setMaxListed(int value)
maxListed7
value - intpublic String getAnchorSnapPoint()
anchorSnapPoint
Type: sap.ui.core.Popup.Dock
SnapPoint of MessageBar over anchorId.
Note: Use "begin" or "end" for RTL support.
Note: "center" is not indicated, as positioning is only set once, either via the css "left" or the "right" attribute. Therefore a MessageBar will only be extended in one direction, as Messages come in.
public void setAnchorSnapPoint(String value)
anchorSnapPoint"begin top"
value - Stringpublic void addMessages(com.sap.ui.core.client.js.JsArray<Message> aMessages)
aMessages - Array of messages.public void deleteMessages(String[] ids)
ids - Messages IDs to be deleted.public void deleteAllMessages()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||