borland Packages  Class Hierarchy  internetbeans Package 

IxRadioButton class

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

About the IxRadioButton class

Variables  Properties  Methods  

Implements ColumnAware, DataSetAware, Renderable, Serializable, Cloneable

Note: This package is a feature of JBuilder Professional and Enterprise.

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.


IxRadioButton variables

Variables implemented in this class

Variables implemented in com.borland.internetbeans.AbstractIxControl

Variables implemented in com.borland.internetbeans.AbstractIxDataWidget

Variables implemented in com.borland.internetbeans.AbstractIxInput

Variables implemented in com.borland.internetbeans.IxComponent

IxRadioButton properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in com.borland.internetbeans.AbstractIxControl

Properties implemented in com.borland.internetbeans.AbstractIxDataWidget

Properties implemented in com.borland.internetbeans.AbstractIxInput

Properties implemented in com.borland.internetbeans.IxComponent

Properties implemented in java.lang.Object

IxRadioButton methods

Methods implemented in this class

Methods implemented in com.borland.internetbeans.AbstractIxBooleanInput

Methods implemented in com.borland.internetbeans.AbstractIxControl

Methods implemented in com.borland.internetbeans.AbstractIxDataWidget

Methods implemented in com.borland.internetbeans.AbstractIxInput

Methods implemented in com.borland.internetbeans.IxComponent

Methods implemented in java.lang.Object


IxRadioButton variables

controlValue

  protected String controlValue
The value of the control from the VALUE attribute; the value that is used when the radiobutton is selected.

INPUT_TYPE

  public static final String INPUT_TYPE = "radio"
Value of TYPE attribute for this class of INPUT element.

IxRadioButton properties

checked

 public boolean isChecked()
Returns true when the value of the component (usually from the data model) matches the VALUE attribute of the control.

renderDelegate

 public IxComponent getRenderDelegate()
Called by PageProducer; do not call directly.

Returns clone of object to render a single radiobutton in the group.

value

 public String getValue()
Overriden to read the stored VALUE attribute to render correctly.

IxRadioButton methods

getInputType()

  protected String getInputType()
Value of TYPE attribute for this class of INPUT element.

Overrides: com.borland.internetbeans.AbstractIxInput.getInputType()

mergeTag(java.lang.String, java.util.Map, boolean)

  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.

Parameters:

tagName
Name of the matching tag, e.g. INPUT, SELECT
attributes
Map of attribute values
empty
Whether the source tag was empty

Overrides: com.borland.internetbeans.AbstractIxBooleanInput.mergeTag(java.lang.String, java.util.Map, boolean)