sky.monome.behavior
Class SequencerRadio.SequencerRadioGroup
java.lang.Object
sky.monome.behavior.Member.Group<T,G>
sky.monome.behavior.AbstractRadio.AbstractRadioGroup<SequencerRadio,SequencerRadio.SequencerRadioGroup>
sky.monome.behavior.SequencerRadio.SequencerRadioGroup
- All Implemented Interfaces:
- ButtonManager<SequencerRadio.SequencerRadioGroup>
- Enclosing class:
- SequencerRadio
public static class SequencerRadio.SequencerRadioGroup
- extends AbstractRadio.AbstractRadioGroup<SequencerRadio,SequencerRadio.SequencerRadioGroup>
Sequencer radio group which is responsible for the permanent exclusivity of the last pressed sequencer radio button.
With this type of radio group, the boolean passed at the construction of the group condition whether always one radio is selected, even at the beginning,
or whether it is possible to deselect all radios by pressing on the currently selected one.
- Since:
- SkyMonome v1.1
- Author:
- PJ Skyman
Method Summary |
protected void |
addRadio(SequencerRadio sequencerRadio)
Adds the specified radio behavior to the list of associated radio behaviors. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SequencerRadio.SequencerRadioGroup
public SequencerRadio.SequencerRadioGroup(boolean optional)
- Constructs a sequencer radio group.
- Parameters:
optional
- Boolean that condition whether always one radio is selected, even at the beginning,
or whether it is possible to deselect all radios by pressing on the currently selected one.
addRadio
protected void addRadio(SequencerRadio sequencerRadio)
throws MonomeException
- Adds the specified radio behavior to the list of associated radio behaviors.
- Specified by:
addRadio
in class AbstractRadio.AbstractRadioGroup<SequencerRadio,SequencerRadio.SequencerRadioGroup>
- Parameters:
sequencerRadio
- Radio behavior to add to the list of associated radio behaviors.
- Throws:
MonomeException
- When a led state can't be initialized.