The repeat button of the sheet of a Sendspin server card (issue #325): it goes through the repeat modes that the server offers (repeat_off, repeat_all, repeat_one, in this order), and the icon for repeat one is drawn only when there is another way to repeat to tell it from; a single "on" mode is drawn as repeat all.
More...
|
|
boolean | available () |
| | True if there are at least two modes to go through.
|
| |
| String | next (String current) |
| |
|
boolean | showsOneIcon (String current) |
| | True if the icon of repeat one is drawn for this mode: it is repeat one, and repeat all is offered too.
|
| |
|
| static SendspinRepeatCycle | of (Set< String > supportedCommands) |
| |
|
static String | commandOf (String mode) |
| | The command that sets a mode (off, all or one).
|
| |
The repeat button of the sheet of a Sendspin server card (issue #325): it goes through the repeat modes that the server offers (repeat_off, repeat_all, repeat_one, in this order), and the icon for repeat one is drawn only when there is another way to repeat to tell it from; a single "on" mode is drawn as repeat all.
Pure.
◆ next()
| String de.yaacc.sendspin.SendspinRepeatCycle.next |
( |
String | current | ) |
|
- Returns
- the mode after
current (the first offered mode if the current one is not offered), or null if there is nothing to cycle
◆ of()
| static SendspinRepeatCycle de.yaacc.sendspin.SendspinRepeatCycle.of |
( |
Set< String > | supportedCommands | ) |
|
|
static |
- Parameters
-
| supportedCommands | the commands the server lists (null: none) |
The documentation for this class was generated from the following file:
- /github/workspace/yaacc/src/main/java/de/yaacc/sendspin/SendspinRepeatCycle.java