VALUE
- is the generic type of the changed value.public class UiWidgetAdapterGwtListBoxCombo<VALUE> extends UiWidgetAdapterGwtFieldFocusWidgetBase<com.google.gwt.user.client.ui.ListBox,VALUE,String> implements UiWidgetAdapterOptionsField<VALUE>, com.google.gwt.user.client.TakesValue<String>
UiWidgetAdapterOptionsField
using GWT based on ListBox
to
build a simple combobox.Modifier and Type | Field and Description |
---|---|
private List<String> |
options |
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 |
---|
UiWidgetAdapterGwtListBoxCombo()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
protected com.google.gwt.user.client.ui.ListBox |
createActiveWidget() |
List<String> |
getOptions()
This method gets the options of this object.
|
String |
getValue()
This method gets the value of this object.
|
protected com.google.gwt.user.client.TakesValue<String> |
getWidgetAsTakesValue() |
protected com.google.gwt.user.client.TakesValue<String> |
getWidgetAsTakesValueString() |
void |
setOptions(List<String> options)
This method sets the
options of this object. |
void |
setValue(String value)
This method sets the
value . |
getWidgetAsFocusable, getWidgetAsHasAllFocusHandlers, getWidgetAsHasChangeHandlers, getWidgetAsKeyPressHandlers, setEnabled
applyEventAdapterForChange, attachActiveWidget, convertValueToString, createToplevelWidget, createViewWidget, getActiveWidget, getInputElement, getMaximumValue, getMinimumValue, getValueAsString, getWidgetViewMode, setAdapterValueInViewMode, setMode, setValidationFailure, 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
setValueAsString
getValueAsString
setValidationFailure
getValidationFailure
private List<String> options
setOptions(List)
public UiWidgetAdapterGwtListBoxCombo()
protected com.google.gwt.user.client.ui.ListBox createActiveWidget()
createActiveWidget
in class UiWidgetAdapterGwtField<com.google.gwt.user.client.ui.ListBox,VALUE,String>
Widget
that is used to display and modify the field value in
edit-mode
.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
.public String getValue()
getValue
in interface com.google.gwt.user.client.TakesValue<String>
getValue
in interface AttributeReadValue<String>
getValue
in class UiWidgetAdapterGwtField<com.google.gwt.user.client.ui.ListBox,VALUE,String>
null
unless otherwise stated.public void setValue(String value)
value
.setValue
in interface com.google.gwt.user.client.TakesValue<String>
setValue
in interface AttributeWriteValue<String>
setValue
in class UiWidgetAdapterGwtField<com.google.gwt.user.client.ui.ListBox,VALUE,String>
value
- is the new value
. May be null
unless otherwise stated.protected com.google.gwt.user.client.TakesValue<String> getWidgetAsTakesValue()
getWidgetAsTakesValue
in class UiWidgetAdapterGwtField<com.google.gwt.user.client.ui.ListBox,VALUE,String>
widget
as TakesValue
.protected com.google.gwt.user.client.TakesValue<String> getWidgetAsTakesValueString()
getWidgetAsTakesValueString
in class UiWidgetAdapterGwtField<com.google.gwt.user.client.ui.ListBox,VALUE,String>
widget
as TakesValue
for the value type String
.Copyright © 2001–2014 mmm-Team. All rights reserved.