|
||||||||||
| 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.sencha.gxt.widget.core.client.Component
com.sencha.gxt.widget.core.client.cell.CellComponent<T>
com.sencha.gxt.widget.core.client.form.Field<T>
com.sencha.gxt.widget.core.client.form.ValueBaseField<T>
com.sencha.gxt.widget.core.client.form.TriggerField<T>
com.sencha.gxt.widget.core.client.form.ComboBox<T>
com.sencha.gxt.widget.core.client.form.SimpleComboBox<T>
T - the combo box typepublic class SimpleComboBox<T>
A combo box that creates and manages a ListStore of <T>
instances. Values are added to the list store using add(java.util.List and removed
from the list store using remove(Object).
ComboBox directly.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.sencha.gxt.widget.core.client.form.Field |
|---|
Field.FieldStyles |
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
| Nested classes/interfaces inherited from interface com.google.gwt.i18n.client.HasDirection |
|---|
HasDirection.Direction |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
SimpleComboBox(LabelProvider<? super T> labelProvider)
Creates an empty combo box in preparation for values to be added to the selection list using add(java.util.List. |
|
| Method Summary | |
|---|---|
void |
add(java.util.List<T> values)
Adds the values to the list of items displayed in the drop down. |
void |
add(T value)
Adds the value to the list of items displayed in the drop down. |
int |
getSelectedIndex()
Returns the selected index. |
void |
remove(T remove)
Removes the item from the list of items displayed in the drop down. |
| Methods inherited from class com.sencha.gxt.widget.core.client.form.ComboBox |
|---|
addBeforeQueryHandler, addBeforeSelectionHandler, addCollapseHandler, addExpandHandler, addSelectionHandler, clear, collapse, doQuery, expand, getAllQuery, getCell, getLabelProvider, getListView, getLoader, getMinChars, getMinListWidth, getPageSize, getStore, getTriggerAction, getTypeAheadDelay, isExpanded, isForceSelection, isTypeAhead, select, select, setAllQuery, setExpanded, setForceSelection, setLoader, setMinChars, setMinListWidth, setPageSize, setStore, setTriggerAction, setTypeAhead, setTypeAheadDelay |
| Methods inherited from class com.sencha.gxt.widget.core.client.form.TriggerField |
|---|
addTriggerClickHandler, isEditable, isMonitorTab, setEditable, setHideTrigger, setMonitorTab |
| Methods inherited from class com.sencha.gxt.widget.core.client.form.ValueBaseField |
|---|
addChangeHandler, addKeyDownHandler, addKeyPressHandler, addKeyUpHandler, addParseErrorHandler, getCurrentValue, getCursorPos, getDirection, getDirectionEstimator, getEmptyText, getPropertyEditor, getSelectedText, getSelectionLength, getText, getValueOrThrow, isAllowBlank, isClearValueOnParseError, isCurrentValid, isCurrentValid, isSelectOnFocus, select, selectAll, setAllowBlank, setClearValueOnParseError, setCursorPos, setDirection, setDirectionEstimator, setDirectionEstimator, setEmptyText, setId, setPropertyEditor, setReadOnly, setSelectionRange, setSelectOnFocus, setText, setValue, validateCurrent |
| Methods inherited from class com.sencha.gxt.widget.core.client.form.Field |
|---|
addInvalidHandler, addValidator, addValidHandler, addValueChangeHandler, clearInvalid, finishEditing, flush, forceInvalid, getErrorSupport, getName, getValidateOnBlur, getValidationDelay, getValidators, isAutoValidate, isEditing, isReadOnly, isValid, isValid, markInvalid, onBrowserEvent, onPropertyChange, removeValidator, reset, setAutoValidate, setDelegate, setErrorSupport, setName, setOriginalValue, setValidateOnBlur, setValidationDelay, setValue, showErrors, validate, validate |
| Methods inherited from class com.sencha.gxt.widget.core.client.cell.CellComponent |
|---|
getElement, getKeyProvider, getValue, redraw, setValue |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, getLayoutData, getParent, isAttached, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, removeStyleName, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, sinkBitlessEvent, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
|---|
fireEvent |
| Methods inherited from interface com.google.gwt.user.client.ui.IsWidget |
|---|
asWidget |
| Methods inherited from interface com.google.gwt.user.client.TakesValue |
|---|
getValue |
| Methods inherited from interface com.google.gwt.user.client.ui.HasValue |
|---|
getValue, setValue |
| Constructor Detail |
|---|
public SimpleComboBox(LabelProvider<? super T> labelProvider)
add(java.util.List) .
labelProvider - the label provider that implements the interface to
the data model associated with this combo box and is responsible
for returning the value displayed to the user| Method Detail |
|---|
public void add(java.util.List<T> values)
values - the values to addpublic void add(T value)
value - the value to addpublic int getSelectedIndex()
public void remove(T remove)
remove - the value to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||