public class RadioGroup extends ChoiceGroup
ChoiceGroup.Choice
Field.Type
Constructor and Description |
---|
RadioGroup(String name) |
Modifier and Type | Method and Description |
---|---|
boolean |
getBooleanValue(FormData fd)
Convenience method that returns the value of this
field as a boolean.
|
int |
getIntValue(FormData fd)
Convenience method that returns the value of this
field as a integer.
|
String |
getStringValue(FormData fd)
Convenience method that returns the selected option as a
String.
|
Field.Type |
getType()
Subclasses should return an appropriate
Field.Type . |
add, addAll, getAllElements, getChoice, getValue, isFilled, isSelected, renderImpl, renderImpl, reset, reverseRender, setValue, setValue, setValueFromSubmit, toString, writeLabel
add, addError, addLabel, addString, disable, disable, enable, enable, getLabel, getName, getValidateErrors, isEnabled, render, render, render, renderError, renderError, renderStyleTag, setStyleTag, validate
public RadioGroup(String name)
public Field.Type getType()
Field
Field.Type
. This type
is rendered as part of <input type= ...getType
in class ChoiceGroup
public String getStringValue(FormData fd)
If there is no selection, returns null
public int getIntValue(FormData fd)
NumberFormatException
- if the value could not be
returned as in integer.public boolean getBooleanValue(FormData fd)