|
||||||||||
| 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.MenuBar
public class MenuBar
The class MenuBar is the GWT wrapper
for the Phoenix control: sap.ui.commons.MenuBar.
Used to present actions in a structure. It represents a UI area which is the container for the menus and menu items. The menu bar contains the menu titles from where users navigate to the single items. The control supports for example long menu item texts, automated scrolling for menu items when the browser space is not large enough to display all items, defining images for single or all items in a menu, automated layouting of items with or w/o image, and active/non-active out-greyed items.
| Constructor Summary | |
|---|---|
protected |
MenuBar()
constructs the class MenuBarhidden due to JavaScriptObject restriction |
| Method Summary | |
|---|---|
MenuBar |
addItem(MenuItem item)
Appends a item to the aggregation items. |
static MenuBar |
create()
creates a new instance of the class MenuBar |
static MenuBar |
create(String idOrConfig)
creates a new instance of the class MenuBar |
static MenuBar |
create(String id,
String config)
creates a new instance of the class MenuBar |
MenuBar |
destroyItems()
Destroys all the items in the Items-aggregation. |
MenuBarDesign |
getDesign()
Getter for property design
Design settings are theme-dependent. |
com.sap.ui.core.client.js.JsArray<MenuItem> |
getItems()
Getter for aggregation items Aggregation of menu items. |
String |
getWidth()
Getter for property width
Sets the width of the control |
int |
indexOfItem(MenuItem item)
Checks for the provided com.sap.ui.commons.client.MenuItem in the items-aggregation and
returns its index if found or -1 otherwise. |
MenuBar |
insertItem(MenuItem item,
int index)
Inserts some item into the aggregation named items. |
boolean |
isEnabled()
Getter for property enabled
When the MenuBar is not enabled all menu items are displayed disabled. |
boolean |
isVisible()
Getter for property visible
Invisible controls are not rendered. |
com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.js.JsArray<MenuItem>> |
removeAllItems()
Removes all the items in the items-aggregation. |
com.sap.ui.core.client.js.JsArray<MenuItem> |
removeItem(int index)
Removes a item from the aggregation named items. |
MenuBar |
setDesign(MenuBarDesign value)
Setter for property designDefault value is: Standard |
MenuBar |
setEnabled(boolean value)
Setter for property enabledDefault value is: true |
MenuBar |
setVisible(boolean value)
Setter for property visibleDefault value is: true |
MenuBar |
setWidth(String value)
Setter for property widthDefault value is: 100% |
| 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 MenuBar()
MenuBarJavaScriptObject restriction
| Method Detail |
|---|
public static MenuBar create()
MenuBar
public static MenuBar create(String idOrConfig)
MenuBar
id - id of the MenuBar or configuration JSON string
public static MenuBar create(String id,
String config)
MenuBar
id - id of the MenuBarconfig - configuration JSON stringpublic final boolean isEnabled()
enabled
When the MenuBar is not enabled all menu items are displayed disabled.
public final MenuBar setEnabled(boolean value)
enabledtrue
value - boolean
this to allow method chainingpublic final boolean isVisible()
visible
Invisible controls are not rendered.
public final MenuBar setVisible(boolean value)
visibletrue
value - boolean
this to allow method chainingpublic final String getWidth()
width
Sets the width of the control
public final MenuBar setWidth(String value)
width100%
value - String
this to allow method chainingpublic final MenuBarDesign getDesign()
design
Design settings are theme-dependent.
public final MenuBar setDesign(MenuBarDesign value)
designStandard
value - com.sap.ui.commons.client.MenuBarDesign
this to allow method chainingpublic final com.sap.ui.core.client.js.JsArray<MenuItem> getItems()
public final MenuBar insertItem(MenuItem item,
int index)
items.
item - the item to insertindex - int the 0-based index the item should be inserted at.
this to allow method chainingpublic final MenuBar addItem(MenuItem item)
items.
item - com.sap.ui.commons.client.MenuItem the item to add
this to allow method chainingpublic final com.sap.ui.core.client.js.JsArray<MenuItem> removeItem(int index)
items.
index - int the position of the item to remove.
public final com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.js.JsArray<MenuItem>> removeAllItems()
public final int indexOfItem(MenuItem item)
com.sap.ui.commons.client.MenuItem in the items-aggregation and
returns its index if found or -1 otherwise.
item - the item whose index is looked for.
public final MenuBar destroyItems()
this to allow method chaining
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||