public class RadioSelectionField extends BurocratField implements com.google.gwt.event.dom.client.ClickHandler
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
Modifier and Type | Field and Description |
---|---|
static int |
NUM_COLUMNS |
static int |
NUM_ITEMS |
Constructor and Description |
---|
RadioSelectionField(IClient client,
IArg arg) |
RadioSelectionField(IClient client,
IArg arg,
IChoice[] choices,
int n)
Constructor: Takes an array of IChoice references and places them in a
default 3-4 column layout.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getValue()
Retrieves the selected value of the list or
null if no value is
selected. |
void |
init(IResponse data)
Layout Radio choices.
|
void |
onClick(com.google.gwt.event.dom.client.ClickEvent event) |
void |
setValue(java.lang.String value)
Sets the value of the form if the value exists.
|
addChangeHandler, getArg, getChangeHandler, onKeyUp
getClient, getRequest, refresh
getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, iterator, remove, remove
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, fireEvent, getLayoutData, getParent, isAttached, onBrowserEvent, removeFromParent, setLayoutData, sinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final int NUM_COLUMNS
public static final int NUM_ITEMS
public RadioSelectionField(IClient client, IArg arg, IChoice[] choices, int n)
choices
- - An array of IChoice references to be placed in the displayed
list of choicesn
- - the number of columns to display the list.public java.lang.String getValue()
null
if no value is
selected.getValue
in class BurocratField
String
value which is the display name in the list.BurocratField.getValue()
public void setValue(java.lang.String value)
setValue
in class BurocratField
-
- text The name of the item to selectBurocratField.setValue(java.lang.String)
public void onClick(com.google.gwt.event.dom.client.ClickEvent event)
onClick
in interface com.google.gwt.event.dom.client.ClickHandler
public void init(IResponse data)
init
in class BurocratPanel
The
- IResponse
data received from the Burocrat ServerBurocratPanel.init(org.colcon.burocrat.api.model.IResponse)