public class Radio extends Checkbox
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
RADIO
The pattern used to create the html for a radio form field.
|
private static long |
serialVersionUID
The class' serialization version id.
|
PARAMivHashCode, ivHashFlds, ivObjAttrs| Constructor and Description |
|---|
Radio(java.lang.String name)
Constructs a new instance of
Radio using the supplied
parameters. |
Radio(java.lang.String name,
java.lang.String value)
Constructs a new instance of
Radio using the supplied
parameters. |
Radio(java.lang.String name,
java.lang.String value,
boolean checked)
Constructs a new instance of
Radio using the supplied
parameters. |
Radio(java.lang.String name,
java.lang.String value,
boolean checked,
java.lang.String stylecls)
Constructs a new instance of
Radio using the supplied
parameters. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Compares the given object to this object and determines if the two are
equal.
|
java.lang.String |
toHTML()
Returns a formatted html string for the radio's current attribute
values.
|
formatAttr, getChecked, getText, getValue, setChecked, setText, setTextHS, setValuegetDisabled, getId, getName, getOnBlur, getOnClick, getOnDblClick, getOnFocus, getOnKeyDown, getOnKeyPress, getOnKeyUp, getOnMouseOut, getOnMouseOver, getStyleCls, getStyleStr, setDisabled, setId, setName, setOnBlur, setOnClick, setOnDblClick, setOnFocus, setOnKeyDown, setOnKeyPress, setOnKeyUp, setOnMouseOut, setOnMouseOver, setStyleCls, setStyleStrcloneMapAttributes, formatValue, formatValue, getHashFields, getMapArrayList, getMapAttributes, getMapBigDecimal, getMapBoolean, getMapDate, getMapDouble, getMapInteger, getMapLong, getMapMapped, getMapObject, getMapShort, getMapString, getMapString, getMapStringBuffer, getMapStringBuilder, getMapTime, getMapTimestamp, getMapVector, hashCode, setHashFields, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMapAttributes, setMapObject, setMapTime, setMapTimestamp, toStringArrayprivate static final long serialVersionUID
private static final java.lang.String RADIO
public Radio(java.lang.String name)
Radio using the supplied
parameters. Defaults the radio value to "ON", the checked state to
"unchecked" and the style class to "radio".name - (String) The form field name for the radio.public Radio(java.lang.String name,
java.lang.String value)
Radio using the supplied
parameters. Defaults the radio checked state to "unchecked" and the
style class to "radio".name - (String) The form field name for the radio.value - (String) The value returned for a checked radio.public Radio(java.lang.String name,
java.lang.String value,
boolean checked)
Radio using the supplied
parameters. Defaults the style class to "radio".name - (String) The form field name for the radio.value - (String) The value returned for a checked radio.checked - (boolean) true to set the initial state
of the radio to "checked", otherwise false.public Radio(java.lang.String name,
java.lang.String value,
boolean checked,
java.lang.String stylecls)
Radio using the supplied
parameters.name - (String) The form field name for the radio.value - (String) The value returned for a checked radio.checked - (boolean) true to set the initial state
of the radio to "checked", otherwise false.stylecls - (String) The radio's style class.public boolean equals(java.lang.Object obj)
equals in Checkbox.equals in class Checkboxobj - (Object) The object to compare with this object.true if the specified object is equal to
this object, otherwise false.Checkbox.equals(java.lang.Object)public java.lang.String toHTML()
toHTML in Checkbox.toHTML in class CheckboxCheckbox.toHTML()