com.sap.ui.commons.client
Class MenuItem

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.sap.ui.core.client.Element
          extended by com.sap.ui.commons.client.MenuItemBase
              extended by com.sap.ui.commons.client.MenuItem

public class MenuItem
extends MenuItemBase

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.

For further parameters see {@link com.sap.ui.commons.client.MenuItemBase

Version:
0.18.0-SNAPSHOT
Author:
GENERATOR (JavaScript control: sap.ui.commons.MenuItem)

Constructor Summary
protected MenuItem()
          constructs the class MenuItem
hidden 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 icon
Default value is: ''
 MenuItem setText(String value)
          Setter for property text
Default 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

MenuItem

protected MenuItem()
constructs the class MenuItem
hidden due to JavaScriptObject restriction

Method Detail

create

public static MenuItem create()
creates a new instance of the class MenuItem


create

public static MenuItem create(String idOrConfig)
creates a new instance of the class MenuItem

Parameters:
id - id of the MenuItem or configuration JSON string

create

public static MenuItem create(String id,
                              String config)
creates a new instance of the class MenuItem

Parameters:
id - id of the MenuItem
config - configuration JSON string

getText

public final String getText()
Getter for property text Text to be displayed as item.

Returns:
the value of property text

setText

public final MenuItem setText(String value)
Setter for property text
Default value is: ''

Parameters:
value - String
Returns:
this to allow method chaining

getIcon

public final String getIcon()
Getter for property icon Icon to be displayed in the item control.

Returns:
the value of property icon

setIcon

public final MenuItem setIcon(String value)
Setter for property icon
Default value is: ''

Parameters:
value - String
Returns:
this to allow method chaining


Copyright © 2011 SAP. All Rights Reserved.