|
||||||||||
| 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.commons.client.MenuItemBase
com.sap.ui.commons.client.MenuItem
public class MenuItem
The class MenuItem is the GWT wrapper
for the Phoenix control: sap.ui.commons.MenuItem.
Smallest unit in the menu hierarchy. An item can be a direct part of a menu bar, of a menu, or of a sub menu.
| Constructor Summary | |
|---|---|
protected |
MenuItem()
constructs the class MenuItemhidden due to JavaScriptObject restriction |
| Method Summary | |
|---|---|
static MenuItem |
create()
creates a new instance of the class MenuItem |
static MenuItem |
create(String idOrConfig)
creates a new instance of the class MenuItem |
static MenuItem |
create(String id,
String config)
creates a new instance of the class MenuItem |
String |
getIcon()
Getter for property icon
Icon to be displayed in the item control. |
String |
getText()
Getter for property text
Text to be displayed as item. |
MenuItem |
setIcon(String value)
Setter for property iconDefault value is: '' |
MenuItem |
setText(String value)
Setter for property textDefault value is: '' |
| Methods inherited from class com.sap.ui.commons.client.MenuItemBase |
|---|
attachSelectEvent, destroySubmenu, detachSelectEvent, getSubmenu, isEnabled, isStartsSection, isVisible, setEnabled, setStartsSection, setSubmenu, setVisible |
| 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 MenuItem()
MenuItemJavaScriptObject restriction
| Method Detail |
|---|
public static MenuItem create()
MenuItem
public static MenuItem create(String idOrConfig)
MenuItem
id - id of the MenuItem or configuration JSON string
public static MenuItem create(String id,
String config)
MenuItem
id - id of the MenuItemconfig - configuration JSON stringpublic final String getText()
text
Text to be displayed as item.
public final MenuItem setText(String value)
text''
value - String
this to allow method chainingpublic final String getIcon()
icon
Icon to be displayed in the item control.
public final MenuItem setIcon(String value)
icon''
value - String
this to allow method chaining
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||