|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.sap.ui.core.client.ControlWidget
com.sap.ui.commons.client.TextFieldWidget
com.sap.ui.commons.client.ComboBoxWidget
public class ComboBoxWidget
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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
|
ComboBoxWidget()
constructs the class ComboBoxWidget |
protected |
ComboBoxWidget(ComboBox control)
constructs the class ComboBoxWidget |
|
ComboBoxWidget(String id)
constructs the class ComboBoxWidget |
| Method Summary | |
|---|---|
void |
addItem(com.sap.ui.core.client.ListItem item)
Appends some item to the items-aggregation. |
void |
bindItems(String path,
com.sap.ui.core.client.Element template)
Binder for aggregation items. |
void |
destroyItems()
Destroys all the items in the Items-aggregation. |
ComboBox |
getControl()
returns the reference to the Phoenix Control |
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. |
void |
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. |
void |
removeAllItems()
Removes all the items in the items-aggregation. |
void |
removeItem(int index)
Removes the item at position index in the items-aggregation named. |
void |
setDisplaySecondaryValues(boolean value)
Setter for property displaySecondaryValuesDefault value is: false |
void |
setListBox(ListBox listBox)
Using this method, you provide a listbox control. |
void |
setListBox(String listBox)
Using this method, you provide a listbox control. |
void |
setMaxPopupItems(int value)
Setter for property maxPopupItemsDefault value is: 10 |
void |
unbindItems()
Unbinder for aggregation items. |
| Methods inherited from class com.sap.ui.commons.client.TextFieldWidget |
|---|
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.ControlWidget |
|---|
destroy, doAttachChildren, doDetachChildren, isDesignTime, wrap |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, sinkBitlessEvent, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ComboBoxWidget()
ComboBoxWidget
public ComboBoxWidget(String id)
ComboBoxWidget
id - id of the ComboBoxWidgetprotected ComboBoxWidget(ComboBox control)
ComboBoxWidget
control - reference to an existing ComboBox| Method Detail |
|---|
public ComboBox getControl()
Control
getControl in class TextFieldWidgetControlpublic 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 void setMaxPopupItems(int value)
maxPopupItems10
value - intpublic boolean isDisplaySecondaryValues()
displaySecondaryValues
Indicates whether the "additionalText" property that is available for sap.ui.core.ListItem shall be displayed in the list.
public void setDisplaySecondaryValues(boolean value)
displaySecondaryValuesfalse
value - booleanpublic com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.ListItem> getItems()
public void insertItem(com.sap.ui.core.client.ListItem item,
int index)
item - the item to insertindex - int the 0-based index the item should be inserted at.public void addItem(com.sap.ui.core.client.ListItem item)
item - com.sap.ui.core.client.ListItem the item to addpublic void removeItem(int index)
index in the items-aggregation named.
index - int the position of the item to remove.public void removeAllItems()
public 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 void destroyItems()
public final void bindItems(String path,
com.sap.ui.core.client.Element template)
items.
path - path to a list in the modeltemplate - the template Element for this aggregationpublic final void unbindItems()
items.
public String getListBox()
public void setListBox(String listBox)
listBox - String id of the associated com.sap.ui.commons.client.ListBox or nullpublic void setListBox(ListBox listBox)
listBox - An associated com.sap.ui.commons.client.ListBox or null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||