A collection of options that can be selected independently. It provides the labels and a heading and arranges the boxes in one or two columns. SwitchBox sends a message, whenever a box is clicked.
Properties:
int count | number of checkboxes |
String title | heading |
String[] boxLabel | labels of the checkboxes |
boolean[] selected | initial states of the checkboxes |
boolean withTwoColumns | if true, checkboxes are arranged in two columns, else in one |
Methods:
doClick(int i, boolean set) | sets checkbox i and fires a SwitchEvent |
Events:
SwitchEvent | signals click on a box and its new state |