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