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)
IBehaviour
setActive
in interface IBehaviour
public void setEventSource(IItem eventSourceItem)
IBehaviour
setEventSource
in interface IBehaviour
public void setItemActingOn(IItem item)
IBehaviour
setItemActingOn
in interface IBehaviour
public void setStage(IStage stage)
IBehaviour
setStage
in interface IBehaviour