DhElement | +--DhBaseContainer | +--DhRadioButtonpublic class DhRadioButton
Represents the radio button HTML-intrinsic control with a text label. Radio button groups allow for mutually exclusive choices from a list of options.
Constructors
Name | Description |
---|---|
DhRadioButton() | Creates a DhRadioButton object. |
DhRadioButton( String strText, boolean fChecked ) | Creates a DhRadioButton object. |
Methods
Name | Description |
---|---|
addEventHandler( DhEventID id, DhEventHandler handler ) | Topic under construction. |
getEnabled() | Retrieves the enabled state of the button. |
getName( ) | Retrieves the name of the button. |
getSubmitName( ) | Retrieves the submit name for this DhRadioButton. |
getSubmitValue( ) | Retrieves the submit value for this DhRadioButton. |
getText( ) | Retrieves the current text label for the radio button. |
getTextAlignment() | Retrieves the current alignment. |
setChecked( boolean fValue ) | Sets the selected state of the radio button. |
setEnabled( boolean f) | Sets the enabled state of the button. |
setFocus() | Sets the input focus to this control. |
setName( String n ) | Sets the name of the button. |
setSubmitName( String strName ) | Sets the group name/submit name for this radio button. |
setSubmitValue( String strValue ) | Sets the submit value for this radio button. |
setText( String strText ) | Sets the text label of the button. |
setTextAlignment( int newAlignment ) | Sets the current alignment. |
setValue() | Retrieves the current selected state of the DhRadioButton. |
Creates a DhRadioButton object. The default constructor creates a blank DhRadioButton with no check or text label. You set the values to initialize them.
Creates a DhRadioButton object. This constructor creates a radio button with right-aligned text (DhAlignEnum.TEXT_RIGHT).
Topic under construction.
Returns true if the button is enabled; returns false if it is not.
Retrieves the enabled state of the button.
Returns the button name.
Retrieves the name of the button.
Returns the group name.
Retrieves the submit name for this DhRadioButton. The submit name designates which groups of radio buttons are connected. Only one DhRadioButton in a group can be selected at a time.
Returns the group name.
Retrieves the submit value for this DhRadioButton.
Returns the text label.
Retrieves the current text label for the radio button.
Returns the current alignment.
Retrieves the current alignment. Can be right-aligned (DhAlignEnum.TEXT_RIGHT) or left-aligned (DhAlignEnum.TEXT_LEFT).
Sets the selected state of the radio button. If this button is bound and is a member of a group, setting its value can affect other DhRadioButton items in the group.
Sets the enabled state of the button.
Sets the input focus to this control.
Sets the name of the button.
Sets the group name/submit name for this radio button. DhRadioButtons within the same group are mutally exclusive, that is, only one can be selected at a given time. Additionally, group names are used for HTTP form submission.
Sets the submit value for this radio button. DhRadioButtons within the same group are mutally exclusive, that is, only one can be selected at a given time. The selected item's value is transmitted in the HTTP submit string as [SubmitName]=[SubmitValue]
Sets the text label of the button.
Sets the current alignment.
Returns true if the button is selected; otherwise, returns false.
Retrieves the current selected state of the DhRadioButton.