fc.web.forms
Class RadioGroup
java.lang.Object
fc.web.forms.Field
fc.web.forms.ChoiceGroup
fc.web.forms.RadioGroup
public class RadioGroup
- extends ChoiceGroup
Represents a grouped set of radio buttons
Nested classes/interfaces inherited from class fc.web.forms.Field |
Field.Type |
Constructor Summary |
RadioGroup(java.lang.String name)
|
Methods inherited from class fc.web.forms.ChoiceGroup |
add, addAll, getAllElements, getChoice, getValue, isFilled, isSelected, renderImpl, renderImpl, reset, reverseRender, setValue, setValue, setValueFromSubmit, toString, writeLabel |
Methods inherited from class fc.web.forms.Field |
add, addError, addLabel, addString, disable, disable, enable, enable, getLabel, getName, getValidateErrors, isEnabled, render, render, render, renderError, renderError, renderStyleTag, setStyleTag, validate |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RadioGroup
public RadioGroup(java.lang.String name)
-
getType
public Field.Type getType()
- Description copied from class:
Field
- Subclasses should return an appropriate
Field.Type
. This type
is rendered as part of <input type= ...
- Specified by:
getType
in class ChoiceGroup
getStringValue
public java.lang.String getStringValue(FormData fd)
- Convenience method that returns the selected option as a
String.
If there is no selection, returns null
getIntValue
public int getIntValue(FormData fd)
- Convenience method that returns the value of this
field as a integer.
- Throws:
java.lang.NumberFormatException
- if the value could not be
returned as in integer.
getBooleanValue
public boolean getBooleanValue(FormData fd)
- Convenience method that returns the value of this
field as a boolean.