fc.web.forms
Class Radio

java.lang.Object
  extended by fc.web.forms.Field
      extended by fc.web.forms.Choice
          extended by fc.web.forms.Radio

public final class Radio
extends Choice

Represents a HTML form's radio element.


Nested Class Summary
 
Nested classes/interfaces inherited from class fc.web.forms.Field
Field.Type
 
Constructor Summary
Radio(String name)
          Constructs a new unselected radio with no separate value attribute
Radio(String name, String value)
          Constructs a new unselected radio with the specified value and HTML text.
Radio(String name, String value, boolean selected)
          Creates a new radio object.
 
Method Summary
 Field.Type getType()
          Subclasses should return an appropriate Field.Type.
 
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
 

Constructor Detail

Radio

public Radio(String name,
             String value,
             boolean selected)
Creates a new radio object.

Parameters:
name - the field name
value - the value of this choice item
selected - true if this choice is originally selected

Radio

public Radio(String name,
             String value)
Constructs a new unselected radio with the specified value and HTML text.

Parameters:
name - the name of this choice
value - the value of this choice item

Radio

public Radio(String name)
Constructs a new unselected radio with no separate value attribute

Parameters:
name - the name of this choice
Method Detail

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