new ButtonGroup()
public function append(b:AbstractButton):Void
Adds the button to the group.
b | the button to be added |
public function remove(b:AbstractButton):Void
Removes the button from the group.
b | the button to be removed |
public function getElements():Array
Returns all the buttons that are participating in this group.
an Array
of the buttons in this group
public function getSelection():ButtonModel
Returns the model of the selected button.
the selected button model
public function setSelected(m:ButtonModel, b:Boolean):Void
Sets the selected value for the ButtonModel
. Only one
button in the group may be selected at a time.
m | the ButtonModel
|
b | true if this button is to be selected,
otherwise false
|
public function isSelected(m:ButtonModel):Boolean
Returns whether a ButtonModel
is selected.
true
if the button is selected, otherwise returns
false