com.sap.ui.core.client
Class Item

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.sap.ui.core.client.Element
          extended by com.sap.ui.core.client.Item
Direct Known Subclasses:
ListItem, SeparatorItem

public class Item
extends Element

The class Item is the GWT wrapper for the Phoenix control: sap.ui.core.Item.

A control base type.

For further parameters see {@link com.sap.ui.core.client.Element

Version:
0.18.0-SNAPSHOT
Author:
GENERATOR (JavaScript control: sap.ui.core.Item)

Constructor Summary
protected Item()
          constructs the class Item
hidden due to JavaScriptObject restriction
 
Method Summary
static Item create()
          creates a new instance of the class Item
static Item create(String idOrConfig)
          creates a new instance of the class Item
static Item create(String id, String config)
          creates a new instance of the class Item
 String getKey()
          Getter for property key Can be used as input for subsequent actions.
 String getText()
          Getter for property text The text to be displayed for the item.
 TextDirection getTextDirection()
          Getter for property textDirection Options are RTL and LTR.
 boolean isEnabled()
          Getter for property enabled Enabled items can be selected.
 Item setEnabled(boolean value)
          Setter for property enabled
Default value is: true
 Item setKey(String value)
          Setter for property key
 Item setText(String value)
          Setter for property text
Default value is: ""
 Item setTextDirection(TextDirection value)
          Setter for property textDirection
Default value is: Inherit
 
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

Item

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

Method Detail

create

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


create

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

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

create

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

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

getText

public final String getText()
Getter for property text The text to be displayed for the item.

Returns:
the value of property text

setText

public final Item setText(String value)
Setter for property text
Default value is: ""

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

isEnabled

public final boolean isEnabled()
Getter for property enabled Enabled items can be selected.

Returns:
the value of property enabled

setEnabled

public final Item setEnabled(boolean value)
Setter for property enabled
Default value is: true

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

getTextDirection

public final TextDirection getTextDirection()
Getter for property textDirection Options are RTL and LTR. Alternatively, an item can inherit its text direction from its parent control.

Returns:
the value of property textDirection

setTextDirection

public final Item setTextDirection(TextDirection value)
Setter for property textDirection
Default value is: Inherit

Parameters:
value - com.sap.ui.core.client.TextDirection
Returns:
this to allow method chaining

getKey

public final String getKey()
Getter for property key Can be used as input for subsequent actions.

Returns:
the value of property key

setKey

public final Item setKey(String value)
Setter for property key

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


Copyright © 2011 SAP. All Rights Reserved.