fc.web.forms
Class Radio
java.lang.Object
fc.web.forms.Field
fc.web.forms.Choice
fc.web.forms.Radio
public final class Radio
- extends Choice
Represents a HTML form's radio element.
Nested classes/interfaces inherited from class fc.web.forms.Field |
Field.Type |
Constructor Summary |
Radio(java.lang.String name)
Constructs a new unselected radio with no separate
value attribute |
Radio(java.lang.String name,
java.lang.String value)
Constructs a new unselected radio with the specified value
and HTML text. |
Radio(java.lang.String name,
java.lang.String value,
boolean selected)
Creates a new radio object. |
Methods inherited from class fc.web.forms.Choice |
getBooleanValue, getIntValue, getShortValue, getValue, isFilled, renderImpl, setSelected, setValue, setValue, setValue, setValueFromSubmit, toString |
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 |
Radio
public Radio(java.lang.String name,
java.lang.String value,
boolean selected)
- Creates a new radio object.
- Parameters:
name
- the field namevalue
- the value of this choice itemselected
- true if this choice is
originally selected
Radio
public Radio(java.lang.String name,
java.lang.String value)
- Constructs a new unselected radio with the specified value
and HTML text.
- Parameters:
name
- the name of this choicevalue
- the value of this choice item
Radio
public Radio(java.lang.String name)
- Constructs a new unselected radio with no separate
value attribute
- Parameters:
name
- the name of this choice
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 Choice