|
||||||||||
| 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.Button
com.sap.ui.commons.client.MenuButton
public class MenuButton
The class MenuButton is the GWT wrapper
for the Phoenix control: sap.ui.commons.MenuButton.
Button that opens a menu upon click
| Constructor Summary | |
|---|---|
protected |
MenuButton()
constructs the class MenuButtonhidden due to JavaScriptObject restriction |
| Method Summary | |
|---|---|
MenuButton |
attachItemSelectedEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
Fired when an item from the menu was selected. |
static MenuButton |
create()
creates a new instance of the class MenuButton |
static MenuButton |
create(String idOrConfig)
creates a new instance of the class MenuButton |
static MenuButton |
create(String id,
String config)
creates a new instance of the class MenuButton |
MenuButton |
destroyMenu()
Destroys the menu in the Menu-aggregation. |
MenuButton |
detachItemSelectedEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
Fired when an item from the menu was selected. |
Menu |
getMenu()
Getter for aggregation menu Menu to open when click button |
MenuButton |
setMenu(Menu menu)
Setter for the aggregated menu. |
| Methods inherited from class com.sap.ui.commons.client.Button |
|---|
attachPressEvent, detachPressEvent, focus, getHeight, getHelpId, getIcon, getText, getWidth, isEnabled, isIconFirst, isVisible, setEnabled, setHeight, setHelpId, setIcon, setIconFirst, setText, setVisible, setWidth |
| 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 MenuButton()
MenuButtonJavaScriptObject restriction
| Method Detail |
|---|
public static MenuButton create()
MenuButton
public static MenuButton create(String idOrConfig)
MenuButton
id - id of the MenuButton or configuration JSON string
public static MenuButton create(String id,
String config)
MenuButton
id - id of the MenuButtonconfig - configuration JSON stringpublic final Menu getMenu()
public final MenuButton setMenu(Menu menu)
omenu - {com.sap.ui.commons.client.Menu}
this to allow method chainingpublic final MenuButton destroyMenu()
this to allow method chainingpublic final MenuButton attachItemSelectedEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Fired when an item from the menu was selected.
listener - reference to the EventListener
this to allow method chainingpublic final MenuButton detachItemSelectedEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Fired when an item from the menu was selected.
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 | |||||||||