RadioButtonController source
Manages the selection of mutually-exclusive RadioButtons.
Specializes Montage
The radio button controller intermediates between a set of options and their visual representation as radio buttons. The controller maintains the invariant that only one radio button at a time may be selected and provides a value property with the currently-selected option.
Properties
-
content :Array.<Object> source
-
The list of possible options.
-
selectedRadioButton :Component source
-
The radio button component corresponding to the currently-selected option.
-
value source
-
The currently-selected option.
Methods
-
callDelegateMethod(name) source
-
This method calls the method named with the identifier prefix if it exists. Example: If the name parameter is "shouldDoSomething" and the caller's identifier is "bob", then this method will try and call "bobShouldDoSomething"
Parameters:
Name Type Description name
string Inherited From: -
equals(anObject) → {boolean} source
-
Returns true if two objects are equal, otherwise returns false.
Parameters:
Name Type Description anObject
Object The object to compare for equality.
Inherited From: Returns: boolean
Returns
true
if the calling object andanObject
are identical and theiruuid
properties are also equal. Otherwise, returnsfalse
. -
registerRadioButton(radioButton) → {undefined} source
-
Add a radio button to be managed by this controller.
Parameters:
Name Type Description radioButton
RadioButton Returns: undefined
-
unregisterRadioButton(radioButton) → {undefined} source
-
Remove a radio button from being managed by this controller.
Parameters:
Name Type Description radioButton
RadioButton Returns: undefined
Generated from a4679af