public class ChoiceInput extends AbstractInput
| Constructor and Description |
|---|
ChoiceInput(com.google.gwt.user.client.ui.ListBox list)
Creates a new choice input control that wraps the given
ListBox widget. |
| Modifier and Type | Method and Description |
|---|---|
String |
getValue() |
protected int |
indexOf(String value)
Searches for the given value in the list of options.
|
void |
setFocus(boolean focused)
Gives or takes the focus to/from this object.
|
void |
setValue(String value)
Sets this object's value.
|
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, sinkEvents, unsinkEventsaddStyleDependentName, 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, toStringpublic ChoiceInput(com.google.gwt.user.client.ui.ListBox list)
ListBox widget.list - the list box widget to be wrappedpublic void setFocus(boolean focused)
focused - true to give the focus to this object, false to take itHasFocus.setFocus(boolean)public String getValue()
HasValue.getValue()public void setValue(String value)
value - a String representing a new value for this objectHasValue.setValue(String)protected int indexOf(String value)
value - the value to search for-1 otherwiseCopyright © 2004–2014 XWiki. All rights reserved.