BiRadioGroup

This class is used in conjunction with radio buttons to ensure only one button is checked.

This class extends BiEventTarget and therefore all methods and fields available for BiEventTarget are also available for BiRadioGroup .

Constructor

new BiRadioGroup ( )

Parameters

No parameters.

Properties

NameTypegetsetDescripton
commandBiCommandcheckedcheckedWhen the radio group has a command the enabled and userValue are synchronized with the command.
enabledBooleancheckedcheckedWhether the radio group is enabled or not. Setting this also sets the enabled property on the radio buttons.
selectedBiRadioButtoncheckedcheckedThis is the radio button that is checked
userValueObjectcheckedcheckedThis is the user value of the checked radio button in this radio group. Setting this checks the first item that has this value. If no item has this value the setting will have no effect.

Methods

NameDescription
addAdds a radio button to the group
removeRemoves a radio button from the group
selectNextSelects (checks and sets focus) the next valid radio button coming after the provided radio button.
selectPreviousSelects (checks and sets focus) the previous valid radio button coming before the provided radio button.

Events

NameTypeBubblesDescripton
changeBiEventThis is fired when the selected radio button is changed

Static Methods

None.

Static Fields

None.

Remarks

None.

Method Details

add

Adds a radio button to the group

Syntax

object.add ( oRadioButton )

Parameters

NameTypeOptionalDefaultDescripton
oRadioButtonBiRadioButtonThe radio button to add to the group

Return Type

void

remove

Removes a radio button from the group

Syntax

object.remove ( oRadioButton )

Parameters

NameTypeOptionalDefaultDescripton
oRadioButtonBiRadioButtonThe radio button to remove

Return Type

void

selectNext

Selects (checks and sets focus) the next valid radio button coming after the provided radio button.

Syntax

object.selectNext ( oRadioButton )

Parameters

NameTypeOptionalDefaultDescripton
oRadioButtonBiRadioButtonThe radio button to find the next relative to

Return Type

void

selectPrevious

Selects (checks and sets focus) the previous valid radio button coming before the provided radio button.

Syntax

object.selectPrevious ( oRadioButton )

Parameters

NameTypeOptionalDefaultDescripton
oRadioButtonBiRadioButtonThe radio button to find the previous relative to

Return Type

void