sky.monome.behavior
Class Radio.RadioGroup


java.lang.Object

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

      extended by sky.monome.behavior.AbstractRadio.AbstractRadioGroup<Radio,Radio.RadioGroup>

          extended by sky.monome.behavior.Radio.RadioGroup

All Implemented Interfaces:
ButtonManager<Radio.RadioGroup>
Enclosing class:
Radio

public static class Radio.RadioGroup
extends AbstractRadio.AbstractRadioGroup<Radio,Radio.RadioGroup>

Radio group which is responsible for the permanent exclusivity of the last pressed radio button. With this type of radio group, always one radio is selected, even at the beginning.

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
Radio.RadioGroup()
          Constructs a radio group.
 
Method Summary
protected  void addRadio(Radio radio)
          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

Radio.RadioGroup


public Radio.RadioGroup()
Constructs a radio group.

Method Detail

addRadio


protected void addRadio(Radio radio)

                 throws MonomeException
Adds the specified radio behavior to the list of associated radio behaviors.

Specified by:
addRadio in class AbstractRadio.AbstractRadioGroup<Radio,Radio.RadioGroup>
Parameters:
radio - Radio behavior to add to the list of associated radio behaviors.
Throws:
MonomeException - When a led state can't be initialized.