public class ButtonBehaviour extends java.lang.Object implements IBehaviour
| Constructor and Description |
|---|
ButtonBehaviour() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(IButtonBehaviourListener l)
Adds the listener.
|
void |
setActive(boolean active)
Set whether a behaviour executes events
|
void |
setEventSource(IItem eventSourceItem)
The item whose multi-touch event dispatcher will generate the events that
this behaviour will respond to.
|
void |
setItemActingOn(IItem item)
The item that the behaviour should operate on.
|
void |
setStage(IStage stage)
Behaviours usually need to know about the stage.
|
public void addListener(IButtonBehaviourListener l)
l - the lpublic void setActive(boolean active)
IBehavioursetActive in interface IBehaviourpublic void setEventSource(IItem eventSourceItem)
IBehavioursetEventSource in interface IBehaviourpublic void setItemActingOn(IItem item)
IBehavioursetItemActingOn in interface IBehaviourpublic void setStage(IStage stage)
IBehavioursetStage in interface IBehaviour