|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
com.sap.ui.core.client.Element
com.sap.ui.core.client.Control
com.sap.ui.commons.client.MessageBar
public class MessageBar
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.
| Constructor Summary | |
|---|---|
protected |
MessageBar()
constructs the class MessageBarhidden due to JavaScriptObject restriction |
| Method Summary | |
|---|---|
void |
addMessages(com.sap.ui.core.client.js.JsArray<Message> aMessages)
To add message(s). |
static MessageBar |
create()
creates a new instance of the class MessageBar |
static MessageBar |
create(String idOrConfig)
creates a new instance of the class MessageBar |
static MessageBar |
create(String id,
String config)
creates a new instance of the class MessageBar |
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. |
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. |
MessageBar |
setAnchorID(String value)
Setter for property anchorID |
MessageBar |
setAnchorSnapPoint(String value)
Setter for property anchorSnapPointDefault value is: "begin top" |
MessageBar |
setMaxListed(int value)
Setter for property maxListedDefault value is: 7 |
MessageBar |
setMaxToasted(int value)
Setter for property maxToastedDefault value is: 3 |
MessageBar |
setVisible(boolean value)
Setter for property visibleDefault value is: true |
| Methods inherited from class com.sap.ui.core.client.Control |
|---|
addStyleClass, hasStyleClass, invalidate, placeAt, placeAt, removeStyleClass, rerender |
| Methods inherited from class com.sap.ui.core.client.Element |
|---|
_convertArray, _convertArray, _convertArray, _convertArray, _convertArray, attachBrowserEvent, attachEvent, bindAggregation, bindContext, bindProperty, bindProperty, destroy, detachBrowserEvent, detachEvent, getDomRef, getElementName, getId, getLibraryName, getModel, getParent, getProperty, getTooltip_AsString, getTooltip_Text, getTooltip, isActive, setModel, setProperty, setTooltip, setTooltip, unbindAggregation, unbindContext, unbindProperty |
| Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
|---|
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected MessageBar()
MessageBarJavaScriptObject restriction
| Method Detail |
|---|
public static MessageBar create()
MessageBar
public static MessageBar create(String idOrConfig)
MessageBar
id - id of the MessageBar or configuration JSON string
public static MessageBar create(String id,
String config)
MessageBar
id - id of the MessageBarconfig - configuration JSON stringpublic final String getAnchorID()
anchorID
Element ID upon which the 'message bar' is to be initially positioned.
public final MessageBar setAnchorID(String value)
anchorID
value - String
this to allow method chainingpublic final boolean isVisible()
visible
Invisible controls are not rendered.
public final MessageBar setVisible(boolean value)
visibletrue
value - boolean
this to allow method chainingpublic final 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 final MessageBar setMaxToasted(int value)
maxToasted3
value - int
this to allow method chainingpublic final int getMaxListed()
maxListed
Maximum number of messages being display in the List before a scrollbar appears. Value '0' means no limit.
public final MessageBar setMaxListed(int value)
maxListed7
value - int
this to allow method chainingpublic final 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 final MessageBar setAnchorSnapPoint(String value)
anchorSnapPoint"begin top"
value - String
this to allow method chainingpublic final void addMessages(com.sap.ui.core.client.js.JsArray<Message> aMessages)
aMessages - Array of messages.public final void deleteMessages(String[] ids)
ids - Messages IDs to be deleted.public final void deleteAllMessages()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||