|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sky.monome.behavior.Member.Group<T,G> sky.monome.behavior.AbstractRadio.AbstractRadioGroup<T,G>
T
- Type of radio behaviors that this radio group will contain.G
- Type of radio group that extends this abstract radio group.public abstract static class AbstractRadio.AbstractRadioGroup<T extends AbstractRadio<G>,G extends AbstractRadio.AbstractRadioGroup<T,G>>
Radio group which is responsible for the permanent exclusivity of the last pressed radio button.
Field Summary | |
---|---|
protected SynchronizedList<T> |
radios
Deprecated. Since SkyMonome v1.1, this field is not used anymore. Please use the field members instead. |
Fields inherited from class sky.monome.behavior.Member.Group |
---|
eventListenerList, members |
Constructor Summary | |
---|---|
AbstractRadio.AbstractRadioGroup()
Constructs a radio group. |
Method Summary | |
---|---|
protected void |
addMember(T member)
Deprecated. With a radio group, it is recommended to use the addRadio(T) method instead of this one. |
protected abstract void |
addRadio(T radio)
Adds the specified radio behavior to the list of associated radio behaviors. |
T |
getActiveRadio()
Returns the currently selected radio behavior, or null if none is selected. |
int |
getRadiosNumber()
Returns the number of associated radio behaviors. |
void |
initRadio(T radio)
Initializes the specified radio behavior in the context of this radio group. |
protected void |
notify(T radio)
Notifies that the specified radio behavior is itself notified (the led/button couple notified its behavior). |
protected void |
notify(T member,
ButtonEvent.ButtonAction buttonAction)
Deprecated. With a radio group, it is recommended to use the notify(T) method instead of this one,
because radio groups are notified only with button press actions. |
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 |
Field Detail |
---|
@Deprecated protected final SynchronizedList<T extends AbstractRadio<G>> radios
members
instead.
Constructor Detail |
---|
public AbstractRadio.AbstractRadioGroup()
Method Detail |
---|
public T getActiveRadio()
null
if none is selected.
null
if none is selected.protected abstract void addRadio(T radio) throws MonomeException
radio
- Radio behavior to add to the list of associated radio behaviors.
MonomeException
- In special cases, when a led state can't be initialized.@Deprecated protected void addMember(T member) throws MonomeException
addRadio(T)
method instead of this one.
addMember
in class Member.Group<T extends AbstractRadio<G>,G extends AbstractRadio.AbstractRadioGroup<T,G>>
member
- Member behavior to add to the list of associated member behaviors.
MonomeException
- In special cases, when a led state can't be initialized.public int getRadiosNumber()
protected void notify(T radio) throws MonomeException
radio
- Radio behavior that notifies this radio group.
MonomeException
- When a led state can't be modified.@Deprecated protected void notify(T member, ButtonEvent.ButtonAction buttonAction) throws MonomeException
notify(T)
method instead of this one,
because radio groups are notified only with button press actions.
notify
in class Member.Group<T extends AbstractRadio<G>,G extends AbstractRadio.AbstractRadioGroup<T,G>>
member
- Member behavior that notifies this group.buttonAction
- Button action associated to this notification.
MonomeException
- When a led state can't be modified.public void initRadio(T radio) throws MonomeException
radio
- Radio behavior that must be initialized.
MonomeException
- When a led state can't be modified.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |