|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The listener interface for receiving "interesting" state machine events:
The class that is interested in processing a state machine event either implements this interface
(and all the methods it contains) or extends the abstract SMStateMachineEventAdapter
class
(overriding only the methods of interest).
The listener object created from that class is then registered with a state machine using the state machine's addSMListener method. When the state machine is attached, detached, resumed, reset, suspended, goes to another state or loops on the current state, the relevant method in the listener object is invoked and the SMStateMachineEvent is passed to it.
SMStateMachineEvent
,
SMStateMachineEventAdapter
Method Summary | |
void |
smAttached(SMStateMachineEvent e)
Invoked when the state machine has been attached to a canvas. |
void |
smDetached(SMStateMachineEvent e)
Invoked when the state machine has been detached from a canvas. |
void |
smInited(SMStateMachineEvent e)
Invoked when the state machine has been inited. |
void |
smRestarted(SMStateMachineEvent e)
Invoked when the state machine has been reset. |
void |
smResumed(SMStateMachineEvent e)
Invoked when the state machine has been resumed. |
void |
smStateChanged(SMStateMachineEvent e)
Invoked when the state machine has fired a transition changing the current state. |
void |
smStateLooped(SMStateMachineEvent e)
Invoked when the state machine has fired a transition making it loop on the current state. |
void |
smSuspended(SMStateMachineEvent e)
Invoked when the state machine has been suspended. |
Method Detail |
public void smAttached(SMStateMachineEvent e)
e
- the event.public void smDetached(SMStateMachineEvent e)
e
- the event.public void smSuspended(SMStateMachineEvent e)
e
- the event.public void smResumed(SMStateMachineEvent e)
e
- the event.public void smRestarted(SMStateMachineEvent e)
e
- the event.public void smStateChanged(SMStateMachineEvent e)
e
- the event.public void smStateLooped(SMStateMachineEvent e)
e
- the event.public void smInited(SMStateMachineEvent e)
e
- the event.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |