borland Packages Class Hierarchy internetbeans Package
java.lang.Object +----com.borland.internetbeans.IxComponent +----com.borland.internetbeans.AbstractIxDataWidget +----com.borland.internetbeans.AbstractIxControl +----com.borland.internetbeans.AbstractIxInput +----com.borland.internetbeans.AbstractIxBooleanInput +----com.borland.internetbeans.IxRadioButton
Variables Properties Methods
Implements ColumnAware, DataSetAware, Renderable, Serializable, Cloneable
A radiobutton.
XHTML: <input type="radio" />
Radiobutton elements are peculiar in two ways: all the buttons in a group share the same name attribute; and the value indicates the value to post if selected, not the current value. To support this, the value in the control is stored via mergeTags
. Then instead of returning itself, getRenderDelegate
returns a clone. getValue
is overridden to retrieve the stored value, so that the control renders properly, and isChecked
is implemented to get the actual value from the data model to compare with the control value.
protected String controlValueThe value of the control from the VALUE attribute; the value that is used when the radiobutton is selected.
public static final String INPUT_TYPE = "radio"Value of TYPE attribute for this class of INPUT element.
public boolean isChecked()Returns true when the value of the component (usually from the data model) matches the VALUE attribute of the control.
public IxComponent getRenderDelegate()Called by
PageProducer
; do not call directly.
Returns clone of object to render a single radiobutton in the group.
public String getValue()Overriden to read the stored VALUE attribute to render correctly.
protected String getInputType()Value of TYPE attribute for this class of INPUT element.
public void mergeTag(String tagName, Map attributes, boolean empty)Called by
PageProducer
; do not call directly. Removes the value of the VALUE attribute of the radiobutton, which is used as the data value when the control is selected, then calls super
.
tagName
attributes
empty