VALUE
- is the generic type of the changed value.public class UiWidgetAdapterGwtComboBoxField<VALUE> extends UiWidgetAdapterGwtFieldFocusWidgetBase<ComboBox,VALUE,String> implements UiWidgetAdapterComboboxField<VALUE>
UiWidgetAdapterComboboxField
using GWT based on a ComboBox
and a DataList
.Modifier and Type | Field and Description |
---|---|
private DataList |
dataList |
TAB_INDEX_NONE
HTML_ATTRIBUTE_ID, ID_SEPARATOR, PROPERTY_ID
PROPERTY_STYLES, STYLE_PATTERN_MULTIPLE, STYLE_PATTERN_SINGLE
WAI_ARIA
ACCESS_KEY_NONE, HTML_ATTRIBUTE_ACCESS_KEY
PROPERTY_LABEL
ATTRIBUTE_COLSPAN
Constructor and Description |
---|
UiWidgetAdapterGwtComboBoxField()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
attachActiveWidget(com.google.gwt.user.client.ui.ComplexPanel panel)
|
protected ComboBox |
createActiveWidget() |
protected DataList |
getDataList() |
List<String> |
getOptions()
This method gets the options of this object.
|
protected com.google.gwt.user.client.ui.HasValue<String> |
getWidgetAsTakesValue() |
protected com.google.gwt.user.client.TakesValue<String> |
getWidgetAsTakesValueString() |
void |
setOptions(List<String> options)
This method sets the
options of this object. |
getWidgetAsFocusable, getWidgetAsHasAllFocusHandlers, getWidgetAsHasChangeHandlers, getWidgetAsKeyPressHandlers, setEnabled
applyEventAdapterForChange, convertValueToString, createToplevelWidget, createViewWidget, getActiveWidget, getInputElement, getMaximumValue, getMinimumValue, getValue, getValueAsString, getWidgetViewMode, setAdapterValueInViewMode, setMode, setValidationFailure, setValue, setValueAsString, setValueInViewMode, updateWidgetViewMode
applyEventAdapterForClick, applyEventAdapterForFocus, getKeyboardFilter, getWidgetAsHasBlurHandlers, getWidgetAsHasFocusHandlers, setAccessKey, setClickEventSender, setFocused, setKeyboardFilter
dispose, removeFromParent
addHandlerRegistration, addStyle, createAbsoluteImageUrl, createEventAdapter, getHeightInPixel, getImage, getImageParentElement, getLength, getSizeElement, getToplevelWidget, getToplevelWidget, getWidthInPixel, isStyleDeltaSupported, removeStyle, setAttribute, setId, setImage, setLength, setPrimaryStyle, setStyles, setTooltip, setVisible
applyEventAdapter, applyEventAdapterForSelection, getEventAdapter, setEventSender
createLabel, getAccessKey, getAltText, getAttribute, getBundle, getColumnSpan, getContext, getHeightInRows, getId, getLabel, getMaximumTextLength, getPrimaryStyle, getSelectionMode, getStyles, getTitle, getTooltip, getToplevelWidget, getUiWidget, getUiWidgetTyped, getUrl, getValidationFailure, hasStyle, isDisposed, isEnabled, isFocused, isResizable, setParent, setUiWidget
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createAbsoluteImageUrl, createLabel, getToplevelWidget, isStyleDeltaSupported, removeFromParent, setEventSender, setMode, setParent, setVisible
setId
getId
setTooltip
getTooltip
setEnabled
isEnabled
addStyle, removeStyle
hasStyle
setStyles
getStyles
setPrimaryStyle
getPrimaryStyle
dispose
isDisposed
setLength
getLength
getHeightInPixel, getWidthInPixel
getAttribute
setAttribute
isFocused
setFocused
setAccessKey
getAccessKey
setValue
getValue
setValueAsString
getValueAsString
setValidationFailure
getValidationFailure
private DataList dataList
createActiveWidget()
public UiWidgetAdapterGwtComboBoxField()
protected ComboBox createActiveWidget()
createActiveWidget
in class UiWidgetAdapterGwtField<ComboBox,VALUE,String>
Widget
that is used to display and modify the field value in
edit-mode
.protected void attachActiveWidget(com.google.gwt.user.client.ui.ComplexPanel panel)
active widget
after creation
to
AbstractUiWidgetAdapter.getToplevelWidget()
. May be overridden for composed active widgets.attachActiveWidget
in class UiWidgetAdapterGwtField<ComboBox,VALUE,String>
panel
- is the ComplexPanel
(see AbstractUiWidgetAdapter.getToplevelWidget()
) where to
attach
.public List<String> getOptions()
List
shall not contain duplicate entries. It may contain the value
null
.getOptions
in interface AttributeReadOptions<String>
List
with all available options.public void setOptions(List<String> options)
options
of this object. The options will be presented in their
order specified by the given List
.setOptions
in interface AttributeWriteOptions<String>
options
- is the new List
of available options
.protected com.google.gwt.user.client.ui.HasValue<String> getWidgetAsTakesValue()
getWidgetAsTakesValue
in class UiWidgetAdapterGwtField<ComboBox,VALUE,String>
widget
as TakesValue
.protected com.google.gwt.user.client.TakesValue<String> getWidgetAsTakesValueString()
getWidgetAsTakesValueString
in class UiWidgetAdapterGwtField<ComboBox,VALUE,String>
widget
as TakesValue
for the value type String
.Copyright © 2001–2016 mmm-Team. All rights reserved.