|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsky.monome.behavior.StaticBehavior
sky.monome.behavior.PassiveBehavior
public class PassiveBehavior
Led behavior that does nothing when it is notified and does nothing at the initialization.
| Nested Class Summary | |
|---|---|
static class |
PassiveBehavior.PassivityType
Type of passivity. |
| Field Summary | |
|---|---|
protected PassiveBehavior.PassivityType |
passivityType
Type of passivity used by this passive behavior. |
| Fields inherited from class sky.monome.behavior.StaticBehavior |
|---|
ledButtonCouple |
| Constructor Summary | |
|---|---|
PassiveBehavior()
Constructs a passive behavior with the default type Passivity.INITIALIZED_OFF. |
|
PassiveBehavior(PassiveBehavior.PassivityType passivityType)
Constructs a passive behavior with the specified type. |
|
| Method Summary | |
|---|---|
void |
init()
Initializes this behavior and the registered led/button couple. |
void |
notify(ButtonEvent.ButtonAction buttonAction)
Notifies this behavior that an action on the button is performed. |
| Methods inherited from class sky.monome.behavior.StaticBehavior |
|---|
getLedButtonCouple, setLedButtonCouple |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final PassiveBehavior.PassivityType passivityType
| Constructor Detail |
|---|
public PassiveBehavior()
Passivity.INITIALIZED_OFF.
public PassiveBehavior(PassiveBehavior.PassivityType passivityType)
passivityType - Type of behavior to adopt.| Method Detail |
|---|
public void notify(ButtonEvent.ButtonAction buttonAction)
buttonAction - Button action that is performed.public void init()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||