-
Notifications
You must be signed in to change notification settings - Fork 85
Cycle Button
Languages: Nederlands (Dutch)
The cycle button cycles between different specified panes in a loop when clicked on it as to denote the selected option. Note that this works differently from a button. While with a button you click on it to execute an action, with a cycle button you click on it as to rotate to the next option.
You can create a cycle button by calling its constructor:
CycleButton cycleButton = new CycleButton(0, 0, 9, 6);
You can then add a new option to the list by calling addPane
and specifying the pane you want to see as option.
cycleButton.addPane(myPane);
If you want to manually cycle to the next option, you can call cycle
:
cycleButton.cycle();
Everything in Panes can also be applied here.
You can create a cycle button using the cyclebutton
element.
<cyclebutton x="0" y="0" length="9" height="6"/>
Inside you can specify the different panes that should be provided as options. The order of the panes in the XML file will be the same as in the cycle button.
<cyclebutton x="0" y="0" length="9" height="6">
<staticpane x="0" y="0" length="9" height="6"/>
</cyclebutton>