T
- the combo box typepublic class SimpleComboBox<T> extends ComboBox<T>
ListStore
of <T>
instances. Values are added to the list store using add(java.util.List<T>)
and removed
from the list store using remove(Object)
.
If the selection list is already in a list store for some other purpose, you
may find it easier to use ComboBox
directly.Field.FieldStyles
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
HasDirection.Direction
DEBUG_ID_PREFIX
Constructor and Description |
---|
SimpleComboBox(ComboBoxCell<T> cell)
Creates a new simple combo box with the given cell.
|
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<T>) . |
SimpleComboBox(LabelProvider<? super T> labelProvider,
TriggerFieldCell.TriggerFieldAppearance appearance)
Creates an empty combo box with the given appearance in preparation for values
to be added to the selection list using
add(java.util.List<T>) . |
Modifier and Type | Method and Description |
---|---|
void |
add(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.
|
addBeforeQueryHandler, addBeforeSelectionHandler, addCollapseHandler, addExpandHandler, addSelectionHandler, clear, collapse, doQuery, expand, getAllQuery, getCell, getLabelProvider, getListView, getLoader, getMaxHeight, getMinChars, getMinListWidth, getPageSize, getQueryDelay, getStore, getTriggerAction, getTypeAheadDelay, isExpanded, isForceSelection, isTypeAhead, isUseQueryCache, select, select, setAllQuery, setExpanded, setForceSelection, setLoader, setLoadingHtml, setLoadingText, setMaxHeight, setMinChars, setMinListWidth, setPageSize, setQueryDelay, setStore, setTriggerAction, setTypeAhead, setTypeAheadDelay, setUseQueryCache
addTriggerClickHandler, isEditable, isFinishEditOnEnter, isMonitorTab, setEditable, setFinishEditOnEnter, setHideTrigger, setMonitorTab
addChangeHandler, addKeyDownHandler, addKeyPressHandler, addKeyUpHandler, addParseErrorHandler, getCurrentValue, getCursorPos, getDirection, getDirectionEstimator, getEmptyText, getPropertyEditor, getSelectedText, getSelectionLength, getText, getValueOrThrow, isAllowBlank, isClearValueOnParseError, isCurrentValid, isCurrentValid, isReadOnly, isSelectOnFocus, select, selectAll, setAllowBlank, setClearValueOnParseError, setCursorPos, setDirection, setDirectionEstimator, setDirectionEstimator, setEmptyText, setId, setPropertyEditor, setReadOnly, setSelectionRange, setSelectOnFocus, setTabIndex, setText, setValue, validateCurrent
addInvalidHandler, addValidator, addValidHandler, addValueChangeHandler, clearInvalid, finishEditing, flush, forceInvalid, getErrors, getErrorSupport, getName, getOriginalValue, getValidateOnBlur, getValidationDelay, getValidators, isAutoValidate, isEditing, isValid, isValid, markInvalid, onBrowserEvent, onPropertyChange, removeValidator, reset, setAutoValidate, setDelegate, setErrorSupport, setName, setOriginalValue, setValidateOnBlur, setValidationDelay, setValue, showErrors, validate, validate
getElement, getKeyProvider, getValue, redraw, setValue
addBeforeHideHandler, addBeforeShowContextMenuHandler, addBeforeShowHandler, addBlurHandler, addDisableHandler, addEnableHandler, addFocusHandler, addHideHandler, addMoveHandler, addResizeHandler, addShowContextMenuHandler, addShowHandler, addStyleOnOver, clearSizeCache, disable, disableEvents, enable, enableEvents, fireEvent, focus, getData, getFocusSupport, getHideMode, getId, getItemId, getOffsetHeight, getOffsetWidth, getShadow, getShadowPosition, getStateId, getTabIndex, getToolTip, hide, hideToolTip, isAllowTextSelection, isAutoHeight, isAutoWidth, isDeferHeight, isEnabled, isRendered, isStateful, isVisible, isVisible, mask, mask, removeToolTip, setAllowTextSelection, setBorders, setBounds, setBounds, setContextMenu, setData, setDeferHeight, setEnabled, setHeight, setHeight, setHideMode, setItemId, setPagePosition, setPixelSize, setPosition, setShadow, setShadowPosition, setSize, setStateful, setStateId, setToolTip, setToolTip, setToolTipConfig, setVisible, setWidth, setWidth, show, sync, syncSize, unmask
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, getLayoutData, getParent, isAttached, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, removeStyleName, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, sinkBitlessEvent, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
fireEvent
getValue
addBlurHandler
@UiConstructor public SimpleComboBox(LabelProvider<? super T> labelProvider)
add(java.util.List<T>)
.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 userpublic SimpleComboBox(LabelProvider<? super T> labelProvider, TriggerFieldCell.TriggerFieldAppearance appearance)
add(java.util.List<T>)
.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 userappearance
- the appearance to use when rendering this widgetpublic SimpleComboBox(ComboBoxCell<T> cell)
cell
- the cellpublic void add(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 removeCopyright © 2015. All rights reserved.