|
||||||||||
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.google.gwt.user.client.ui.Composite
com.github.gwtbootstrap.client.ui.ValueListBox<T>
T
- the value typepublic class ValueListBox<T>
The TW Bootstrap style ValueListBox
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
Field Summary |
---|
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
ValueListBox(Renderer<T> renderer)
|
|
ValueListBox(Renderer<T> renderer,
ProvidesKey<T> keyProvider)
|
Method Summary | |
---|---|
void |
addStyle(Style style)
Adds the provided style to the widget. |
HandlerRegistration |
addValueChangeHandler(ValueChangeHandler<T> handler)
|
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)
|
Methods inherited from class com.google.gwt.user.client.ui.Composite |
---|
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, performDetachedInitialization, render, render, resolvePotentialElement, setWidget, wrapElement |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Constructor Detail |
---|
public ValueListBox(Renderer<T> renderer)
public ValueListBox(Renderer<T> renderer, ProvidesKey<T> keyProvider)
Method Detail |
---|
public void setName(String name)
setName
in interface HasName
public String getName()
getName
in interface HasName
public HandlerRegistration addValueChangeHandler(ValueChangeHandler<T> handler)
addValueChangeHandler
in interface HasValueChangeHandlers<T>
public TakesValueEditor<T> asEditor()
TakesValueEditor
backed by the ValueListBox.
asEditor
in interface IsEditor<TakesValueEditor<T>>
public T getValue()
getValue
in interface TakesValue<T>
getValue
in interface HasValue<T>
public void setAcceptableValues(Collection<T> newValues)
setAcceptableValues
in interface HasConstrainedValue<T>
public void setValue(T value)
setValue
in interface TakesValue<T>
setValue
in interface HasValue<T>
public void setValue(T value, boolean fireEvents)
setValue
in interface HasValue<T>
public String getId()
getId
in interface HasId
public void setId(String id)
setId
in interface HasId
id
- set idpublic void setSearchQuery(boolean searchQuery)
setSearchQuery
in interface IsSearchQuery
searchQuery
- true:add search-query css-class/false:remove search-query css-classpublic boolean isSearchQuery()
isSearchQuery
in interface IsSearchQuery
public void setAlternateSize(AlternateSize size)
setAlternateSize
in interface HasAlternateSize
public void setSize(int size)
setSize
in interface HasSize
size
- the size of the widget in the Bootstrap grid systempublic void setEnabled(boolean enabled)
setEnabled
in interface HasEnabled
public boolean isEnabled()
isEnabled
in interface HasEnabled
public void setShowOn(Device device)
The widget is not shown on any other device.
Only works if responsive design is turned on!
setShowOn
in interface IsResponsive
Configurator.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 IsResponsive
Configurator.hasResponsiveDesign()
,
IsResponsive.setShowOn(Device)
public void setStyle(Style style)
setStyle
in interface HasStyle
style
- the style to be applied to the Widget.public void addStyle(Style style)
addStyle
in interface HasStyle
style
- the style to be added to the Widget.public void removeStyle(Style style)
removeStyle
in interface HasStyle
style
- the style to be removed from the Widget.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |