Method | Description | |
---|---|---|
ButtonGroup ( ) : System | ||
add ( ) : void | ||
add ( |
||
canCheck ( |
Called when a button is checked or unchecked. If overridden, generally changing button checked states should not be done from within this method.
|
|
clear ( ) : void | ||
getAllChecked ( ) : List | ||
getButtons ( ) : List | ||
getChecked ( ) : |
The first checked button, or null.
|
|
getCheckedIndex ( ) : int |
The first checked button index, or -1
|
|
remove ( ) : void | ||
remove ( |
||
setChecked ( string text ) : void |
Sets the first {@link TextButton} with the specified text to checked.
|
|
setMaxCheckCount ( int maxCheckCount ) : void |
Sets the maximum number of buttons that can be checked. Set to -1 for no maximum. Default is 1.
|
|
setMinCheckCount ( int minCheckCount ) : void |
Sets the minimum number of buttons that must be checked. Default is 1.
|
|
setUncheckLast ( bool uncheckLast ) : void |
If true, when the maximum number of buttons are checked and an additional button is checked, the last button to be checked is unchecked so that the maximum is not exceeded. If false, additional buttons beyond the maximum are not allowed to be checked. Default is true.
|
|
uncheckAll ( ) : void |
Sets all buttons' {@link Button#isChecked()} to false, regardless of {@link #setMinCheckCount(int)}.
|
public canCheck ( |
||
button | Button. | |
newState | bool | New state. |
return | bool |
public setMaxCheckCount ( int maxCheckCount ) : void | ||
maxCheckCount | int | Max check count. |
return | void |
public setMinCheckCount ( int minCheckCount ) : void | ||
minCheckCount | int | Minimum check count. |
return | void |
public setUncheckLast ( bool uncheckLast ) : void | ||
uncheckLast | bool | Uncheck last. |
return | void |