|
||||||||||
| 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
public class MenuItemBase
The class MenuItemBase is the GWT wrapper
for the Phoenix control: sap.ui.commons.MenuItemBase.
Provides the standard properties for menu items.
| Constructor Summary | |
|---|---|
protected |
MenuItemBase()
constructs the class MenuItemBasehidden due to JavaScriptObject restriction |
| Method Summary | |
|---|---|
MenuItemBase |
attachSelectEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
Event is fired when an item is selected. |
static MenuItemBase |
create()
creates a new instance of the class MenuItemBase |
static MenuItemBase |
create(String idOrConfig)
creates a new instance of the class MenuItemBase |
static MenuItemBase |
create(String id,
String config)
creates a new instance of the class MenuItemBase |
MenuItemBase |
destroySubmenu()
Destroys the submenu in the Submenu-aggregation. |
MenuItemBase |
detachSelectEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
Event is fired when an item is selected. |
Menu |
getSubmenu()
Getter for aggregation submenu Aggregation of a menu item's submenu. |
boolean |
isEnabled()
Getter for property enabled
Disabled items have different colors, depending on customer settings. |
boolean |
isStartsSection()
Getter for property startsSection
If true, then a divider is shown before this item. |
boolean |
isVisible()
Getter for property visible
Invisible controls are not rendered. |
MenuItemBase |
setEnabled(boolean value)
Setter for property enabledDefault value is: true |
MenuItemBase |
setStartsSection(boolean value)
Setter for property startsSectionDefault value is: false |
MenuItemBase |
setSubmenu(Menu submenu)
Setter for the aggregated submenu. |
MenuItemBase |
setVisible(boolean value)
Setter for property visibleDefault value is: true |
| 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 MenuItemBase()
MenuItemBaseJavaScriptObject restriction
| Method Detail |
|---|
public static MenuItemBase create()
MenuItemBase
public static MenuItemBase create(String idOrConfig)
MenuItemBase
id - id of the MenuItemBase or configuration JSON string
public static MenuItemBase create(String id,
String config)
MenuItemBase
id - id of the MenuItemBaseconfig - configuration JSON stringpublic final boolean isEnabled()
enabled
Disabled items have different colors, depending on customer settings.
public final MenuItemBase setEnabled(boolean value)
enabledtrue
value - boolean
this to allow method chainingpublic final boolean isVisible()
visible
Invisible controls are not rendered.
public final MenuItemBase setVisible(boolean value)
visibletrue
value - boolean
this to allow method chainingpublic final boolean isStartsSection()
startsSection
If true, then a divider is shown before this item.
public final MenuItemBase setStartsSection(boolean value)
startsSectionfalse
value - boolean
this to allow method chainingpublic final Menu getSubmenu()
public final MenuItemBase setSubmenu(Menu submenu)
osubmenu - {com.sap.ui.commons.client.Menu}
this to allow method chainingpublic final MenuItemBase destroySubmenu()
this to allow method chainingpublic final MenuItemBase attachSelectEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when an item is selected. The event is also available for items having a submenu.
A mouse click or spacebar click on a submenu item fires the event.
listener - reference to the EventListener
this to allow method chainingpublic final MenuItemBase detachSelectEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when an item is selected. The event is also available for items having a submenu.
A mouse click or spacebar click on a submenu item fires the event.
listener - reference to the EventListener
this to allow method chaining
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||