sky.monome.behavior
Class OptionalRadio.OptionalRadioGroup


java.lang.Object

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

      extended by sky.monome.behavior.AbstractRadio.AbstractRadioGroup<OptionalRadio,OptionalRadio.OptionalRadioGroup>

          extended by sky.monome.behavior.OptionalRadio.OptionalRadioGroup

All Implemented Interfaces:
ButtonManager<OptionalRadio.OptionalRadioGroup>
Enclosing class:
OptionalRadio

public static class OptionalRadio.OptionalRadioGroup
extends AbstractRadio.AbstractRadioGroup<OptionalRadio,OptionalRadio.OptionalRadioGroup>

Optional radio group which is responsible for the permanent exclusivity of the last pressed optional radio button. With this type of radio group, it is possible to deselect all radios by pressing on the currently selected one.

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
OptionalRadio.OptionalRadioGroup()
          Constructs an optional radio group.
 
Method Summary
protected  void addRadio(OptionalRadio optionalRadio)
          Adds the specified optional radio behavior to the list of associated optional 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

OptionalRadio.OptionalRadioGroup


public OptionalRadio.OptionalRadioGroup()
Constructs an optional radio group.

Method Detail

addRadio


protected void addRadio(OptionalRadio optionalRadio)
Adds the specified optional radio behavior to the list of associated optional radio behaviors.

Specified by:
addRadio in class AbstractRadio.AbstractRadioGroup<OptionalRadio,OptionalRadio.OptionalRadioGroup>
Parameters:
optionalRadio - Optional radio behavior to add to the list of associated optional radio behaviors.