|
||||||||||
| 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.TextField
com.sap.ui.commons.client.ComboBox
public class ComboBox
The class ComboBox is the GWT wrapper
for the Phoenix control: sap.ui.commons.ComboBox.
The control provides a field that allows end users to either enter some text, or to choose an entry out of a list of pre-defined items. The choosable items can be provided in the form of complete list boxes, single listbox items, or text strings defined for the current application.
| Constructor Summary | |
|---|---|
protected |
ComboBox()
constructs the class ComboBoxhidden due to JavaScriptObject restriction |
| Method Summary | |
|---|---|
ComboBox |
addItem(com.sap.ui.core.client.ListItem item)
Appends a item to the aggregation items. |
ComboBox |
bindItems(String path,
com.sap.ui.core.client.Element template)
Binder for aggregation items. |
static ComboBox |
create()
creates a new instance of the class ComboBox |
static ComboBox |
create(String idOrConfig)
creates a new instance of the class ComboBox |
static ComboBox |
create(String id,
String config)
creates a new instance of the class ComboBox |
ComboBox |
destroyItems()
Destroys all the items in the Items-aggregation. |
com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.ListItem> |
getItems()
Getter for aggregation items Getter for aggregation items. |
String |
getListBox()
Using this method, you provide a listbox control. |
int |
getMaxPopupItems()
Getter for property maxPopupItems
Defines the number of items that shall be displayed at once. |
int |
indexOfItem(com.sap.ui.core.client.ListItem item)
Checks for the provided com.sap.ui.core.client.ListItem in the items-aggregation and
returns its index if found or -1 otherwise. |
ComboBox |
insertItem(com.sap.ui.core.client.ListItem item,
int index)
Inserts some item into the aggregation named items. |
boolean |
isDisplaySecondaryValues()
Getter for property displaySecondaryValues
Indicates whether the "additionalText" property that is available for sap.ui.core.ListItem shall be displayed in the list. |
com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.ListItem>> |
removeAllItems()
Removes all the items in the items-aggregation. |
com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.ListItem> |
removeItem(int index)
Removes a item from the aggregation named items. |
ComboBox |
setDisplaySecondaryValues(boolean value)
Setter for property displaySecondaryValuesDefault value is: false |
ComboBox |
setListBox(ListBox listBox)
Using this method, you provide a listbox control. |
ComboBox |
setListBox(String listBox)
Using this method, you provide a listbox control. |
ComboBox |
setMaxPopupItems(int value)
Setter for property maxPopupItemsDefault value is: 10 |
ComboBox |
unbindItems()
Unbinder for aggregation items. |
| Methods inherited from class com.sap.ui.commons.client.TextField |
|---|
attachChangeEvent, bindValue, bindValue, detachChangeEvent, focus, getAccessibleDescription, getAccessibleName, getAccessibleRole, getDesign, getHelpId, getImeMode, getMaxLength, getTextAlign, getTextDirection, getValue, getValueState, getWidth, isEditable, isEnabled, isRequired, isVisible, setAccessibleDescription, setAccessibleName, setAccessibleRole, setDesign, setEditable, setEnabled, setHelpId, setImeMode, setMaxLength, setRequired, setTextAlign, setTextDirection, setValue, setValueState, setVisible, setWidth, unbindValue |
| 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 ComboBox()
ComboBoxJavaScriptObject restriction
| Method Detail |
|---|
public static ComboBox create()
ComboBox
public static ComboBox create(String idOrConfig)
ComboBox
id - id of the ComboBox or configuration JSON string
public static ComboBox create(String id,
String config)
ComboBox
id - id of the ComboBoxconfig - configuration JSON stringpublic final int getMaxPopupItems()
maxPopupItems
Defines the number of items that shall be displayed at once. If the overall number of list items is higher than the setting, a scrollbar is provided.
public final ComboBox setMaxPopupItems(int value)
maxPopupItems10
value - int
this to allow method chainingpublic final boolean isDisplaySecondaryValues()
displaySecondaryValues
Indicates whether the "additionalText" property that is available for sap.ui.core.ListItem shall be displayed in the list.
public final ComboBox setDisplaySecondaryValues(boolean value)
displaySecondaryValuesfalse
value - boolean
this to allow method chainingpublic final com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.ListItem> getItems()
public final ComboBox insertItem(com.sap.ui.core.client.ListItem item,
int index)
items.
item - the item to insertindex - int the 0-based index the item should be inserted at.
this to allow method chainingpublic final ComboBox addItem(com.sap.ui.core.client.ListItem item)
items.
item - com.sap.ui.core.client.ListItem the item to add
this to allow method chainingpublic final com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.ListItem> removeItem(int index)
items.
index - int the position of the item to remove.
public final com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.ListItem>> removeAllItems()
public final int indexOfItem(com.sap.ui.core.client.ListItem item)
com.sap.ui.core.client.ListItem in the items-aggregation and
returns its index if found or -1 otherwise.
item - the item whose index is looked for.
public final ComboBox destroyItems()
this to allow method chaining
public final ComboBox bindItems(String path,
com.sap.ui.core.client.Element template)
items.
path - path to a list in the modeltemplate - the template Element for this aggregation
this to allow method chainingpublic final ComboBox unbindItems()
items.
this to allow method chainingpublic final String getListBox()
public final ComboBox setListBox(String listBox)
listBox - id of the associated com.sap.ui.commons.client.ListBox or null
this to allow method chainingpublic final ComboBox setListBox(ListBox listBox)
listBox - An associated com.sap.ui.commons.client.ListBox or null
this to allow method chaining
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||