T - the value typepublic class ValueListBox<T> extends com.google.gwt.user.client.ui.Composite implements com.google.gwt.user.client.ui.HasConstrainedValue<T>, com.google.gwt.editor.client.IsEditor<com.google.gwt.editor.client.adapters.TakesValueEditor<T>>, com.google.gwt.user.client.ui.HasName, HasId, com.google.gwt.user.client.ui.HasEnabled, HasSize, HasAlternateSize, IsSearchQuery, IsResponsive, HasStyle
| Constructor and Description |
|---|
ValueListBox(com.google.gwt.text.shared.Renderer<T> renderer) |
ValueListBox(com.google.gwt.text.shared.Renderer<T> renderer,
com.google.gwt.view.client.ProvidesKey<T> keyProvider) |
| Modifier and Type | Method and Description |
|---|---|
void |
addStyle(Style style)
Adds the provided style to the widget.
|
com.google.gwt.event.shared.HandlerRegistration |
addValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<T> handler) |
com.google.gwt.editor.client.adapters.TakesValueEditor<T> |
asEditor()
Returns a
TakesValueEditor backed by the ValueListBox. |
String |
getId()
Get ID
|
String |
getName() |
T |
getValue() |
boolean |
isEnabled() |
boolean |
isSearchQuery()
is the element search-query style?
|
void |
removeStyle(Style style)
Removes the provided style from the widget.
|
void |
setAcceptableValues(Collection<T> newValues) |
void |
setAlternateSize(AlternateSize size) |
void |
setEnabled(boolean enabled) |
void |
setHideOn(Device device)
Sets the kind of device, this widget is hidden on.
|
void |
setId(String id)
Set ID
|
void |
setName(String name) |
void |
setSearchQuery(boolean searchQuery)
Set search-query style to the element.
|
void |
setShowOn(Device device)
Sets the kind of device, this widget is shown on.
|
void |
setSize(int size)
Sets the widget's size.
|
void |
setStyle(Style style)
Replaces the widet's style with the provided one.
|
void |
setValue(T value)
Set the value and display it in the select element.
|
void |
setValue(T value,
boolean fireEvents) |
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidgetaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, setParent, sinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEventspublic ValueListBox(com.google.gwt.text.shared.Renderer<T> renderer)
public void setName(String name)
setName in interface com.google.gwt.user.client.ui.HasNamepublic String getName()
getName in interface com.google.gwt.user.client.ui.HasNamepublic com.google.gwt.event.shared.HandlerRegistration addValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<T> handler)
addValueChangeHandler in interface com.google.gwt.event.logical.shared.HasValueChangeHandlers<T>public com.google.gwt.editor.client.adapters.TakesValueEditor<T> asEditor()
TakesValueEditor backed by the ValueListBox.asEditor in interface com.google.gwt.editor.client.IsEditor<com.google.gwt.editor.client.adapters.TakesValueEditor<T>>public T getValue()
public void setAcceptableValues(Collection<T> newValues)
setAcceptableValues in interface com.google.gwt.user.client.ui.HasConstrainedValue<T>public void setValue(T value)
public void setValue(T value, boolean fireEvents)
setValue in interface com.google.gwt.user.client.ui.HasValue<T>public void setId(String id)
public void setSearchQuery(boolean searchQuery)
setSearchQuery in interface IsSearchQuerysearchQuery - true:add search-query css-class/false:remove search-query css-classpublic boolean isSearchQuery()
isSearchQuery in interface IsSearchQuerypublic void setAlternateSize(AlternateSize size)
setAlternateSize in interface HasAlternateSizepublic void setSize(int size)
setSize in interface HasSizesize - the size of the widget in the Bootstrap grid systempublic void setEnabled(boolean enabled)
setEnabled in interface com.google.gwt.user.client.ui.HasEnabledpublic boolean isEnabled()
isEnabled in interface com.google.gwt.user.client.ui.HasEnabledpublic void setShowOn(Device device)
The widget is not shown on any other device.
Only works if responsive design is turned on!
setShowOn in interface IsResponsiveConfigurator.hasResponsiveDesign(),
IsResponsive.setHideOn(Device)public void setHideOn(Device device)
The widget is not hidden on any other device.
Only works if responsive design is turned on!
setHideOn in interface IsResponsiveConfigurator.hasResponsiveDesign(),
IsResponsive.setShowOn(Device)public void setStyle(Style style)
public void addStyle(Style style)
public void removeStyle(Style style)
removeStyle in interface HasStylestyle - the style to be removed from the Widget.Copyright © 2016. All rights reserved.