|
GWT 2.7.0 | |||||||
| 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.google.gwt.user.client.ui.ValuePicker<T>
T - the type of valuepublic class ValuePicker<T>
Allows the user to pick a single value from a list.
| 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.Widget |
|---|
eventsToSink |
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX, MISSING_ELEMENT_ERROR, SETELEMENT_TWICE_ERROR |
| Constructor Summary | |
|---|---|
ValuePicker()
|
|
ValuePicker(CellList<T> cellList)
|
|
ValuePicker(Renderer<? super T> renderer)
|
|
| Method Summary | |
|---|---|
HandlerRegistration |
addValueChangeHandler(ValueChangeHandler<T> handler)
Adds a ValueChangeEvent handler. |
LeafValueEditor<T> |
asEditor()
Returns a TakesValueEditor backed by the ValuePicker. |
ValuePicker<T> |
asWidget()
Returns this view. |
int |
getPageSize()
|
T |
getValue()
Gets this object's value. |
void |
setAcceptableValues(java.util.Collection<T> values)
Set the acceptable values. |
void |
setPageSize(int size)
|
void |
setValue(T value)
Sets this object's value without firing any events. |
void |
setValue(T value,
boolean fireEvents)
Sets this object's value. |
| Methods inherited from class com.google.gwt.user.client.ui.Composite |
|---|
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, ensureHandlers, fireEvent, getHandlerCount, getHandlerManager, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, replaceElement, setLayoutData, setParent, sinkEvents, unsinkEvents |
| 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 |
| 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 ValuePicker(CellList<T> cellList)
public ValuePicker(Renderer<? super T> renderer)
public ValuePicker()
| Method Detail |
|---|
public HandlerRegistration addValueChangeHandler(ValueChangeHandler<T> handler)
HasValueChangeHandlersValueChangeEvent handler.
addValueChangeHandler in interface HasValueChangeHandlers<T>handler - the handler
public LeafValueEditor<T> asEditor()
TakesValueEditor backed by the ValuePicker.
asEditor in interface IsEditor<LeafValueEditor<T>>Editor of type Epublic ValuePicker<T> asWidget()
asWidget in interface IsWidgetasWidget in class Widgetpublic int getPageSize()
public T getValue()
HasValue
getValue in interface TakesValue<T>getValue in interface HasValue<T>TakesValue.setValue(V)public void setAcceptableValues(java.util.Collection<T> values)
HasConstrainedValue
setAcceptableValues in interface HasConstrainedValue<T>values - the acceptible valuespublic void setPageSize(int size)
public void setValue(T value)
HasValueIt is acceptable to fail assertions or throw (documented) unchecked exceptions in response to bad values.
Widgets must accept null as a valid value. By convention, setting a widget to
null clears value, calling getValue() on a cleared widget returns null. Widgets
that can not be cleared (e.g. CheckBox) must find another valid meaning
for null input.
setValue in interface TakesValue<T>setValue in interface HasValue<T>value - the object's new valueTakesValue.getValue()
public void setValue(T value,
boolean fireEvents)
HasValueValueChangeEvent when
fireEvents is true and the new value does not equal the existing value.
It is acceptable to fail assertions or throw (documented) unchecked exceptions in response to bad values.
setValue in interface HasValue<T>value - the object's new valuefireEvents - fire events if true and value is new
|
GWT 2.7.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||