sky.monome.behavior
Class SequencerRadio.SequencerRadioGroup


java.lang.Object

  extended by sky.monome.behavior.Member.Group<T,G>

      extended by sky.monome.behavior.AbstractRadio.AbstractRadioGroup<SequencerRadio,SequencerRadio.SequencerRadioGroup>

          extended by 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

Field Summary
 
Fields inherited from class sky.monome.behavior.AbstractRadio.AbstractRadioGroup
radios
 
Fields inherited from class sky.monome.behavior.Member.Group
eventListenerList, members
 
Constructor Summary
SequencerRadio.SequencerRadioGroup(boolean optional)
          Constructs a sequencer radio group.
 
Method Summary
protected  void addRadio(SequencerRadio sequencerRadio)
          Adds the specified radio behavior to the list of associated radio behaviors.
 
Methods inherited from class sky.monome.behavior.AbstractRadio.AbstractRadioGroup
addMember, getActiveRadio, getRadiosNumber, initRadio, notify, notify
 
Methods inherited from class sky.monome.behavior.Member.Group
addButtonListener, fireButtonActionned, getButtonListeners, getMembersNumber, removeButtonListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.