Field.Type
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
Field.Type |
getType()
Subclasses should return an appropriate
Field.Type . |
getBooleanValue, getIntValue, getShortValue, getValue, isFilled, renderImpl, setSelected, setValue, setValue, setValue, setValueFromSubmit, toString
add, addError, addLabel, addString, disable, disable, enable, enable, getLabel, getName, getValidateErrors, isEnabled, render, render, render, renderError, renderError, renderStyleTag, setStyleTag, validate
public Radio(String name, String value, boolean selected)
name
- the field namevalue
- the value of this choice itemselected
- true if this choice is
originally selectedpublic Radio(String name, String value)
name
- the name of this choicevalue
- the value of this choice itempublic Field.Type getType()
Field
Field.Type
. This type
is rendered as part of <input type= ...