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

NameTypeOptionalDefaultDescripton
sTextStringchecked"" The text to show on the radio button
bCheckedBooleancheckedfalse Whether the radio button is checked or not

Properties

NameTypegetsetDescripton
checkedBooleancheckedcheckedWhether the radio button is checked or not. When this is changed the change event is fired.
groupBiRadioGroupcheckedcheckedThe group that the radio button should be part of
itemsBiRadioButton[]checkedThe items that form the radio group
userValueObjectcheckedcheckedA value associated with the radio button.

Methods

None.

Events

NameTypeBubblesDescripton
actionBiEventFires when the user presses the button (either using the mouse or the keyboard)
changeBiEventFires 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.