BiRadioButton

Represents a radio button control. A radio button control can have two states; checked and unchecked. These are represented by the checked property.

Once a radio button is checked clicking it again will not uncheck it. To uncheck a radio button another radio button in the same radio group must be checked.

This class extends BiLabel and therefore all methods and fields available for BiLabel are also available for BiRadioButton .

Constructor

new BiRadioButton ( [ sText [ ,bChecked ] ] )

Parameters

Name Type Optional Default Descripton
sText String checked "" The text to show on the radio button
bChecked Boolean checked false Whether the radio button is checked or not

Properties

Name Type get set Descripton
checked Boolean checked checked Whether the radio button is checked or not. When this is changed the change event is fired.
group BiRadioGroup checked checked The group that the radio button should be part of
userValue Object checked checked A value associated with the radio button.

Methods

None.

Events

Name Type Bubbles Descripton
action BiEvent Fires when the user presses the button (either using the mouse or the keyboard)
change BiEvent Fires when the checked is changed

Static Methods

None.

Static Fields

None.

Remarks

Note that icons are not supported on radio buttons. If the radio button has a command the command will be executed when the user clicks the button. The checked and userValue properties are synchronized with the command.