public class TransitionEvent extends ControllerEvent
TransitionEvent is a ControllerEvent that indicates
that a Controller has changed state.Controller,
ControllerListener,
Serialized Formsource| Constructor and Description |
|---|
TransitionEvent(Controller from,
int previous,
int current,
int target)
Construct a new
TransitionEvent. |
| Modifier and Type | Method and Description |
|---|---|
int |
getCurrentState()
Get the
Controller's state at the time this event was
generated |
int |
getPreviousState()
Get the state that the
Controller was in before this event occurred. |
int |
getTargetState()
Get the
Controller's target state at the time this event
was generated. |
String |
toString()
Returns the String representation of this event's values.
|
getSource, getSourceControllerpublic TransitionEvent(Controller from, int previous, int current, int target)
TransitionEvent.from - The Controller that is generating this event.previous - The state that the Controller was in before this event.current - The state that the Controller is in as a result of this event.target - The state that the Controller is heading to.public int getPreviousState()
Controller was in before this event occurred.Controller's previous state.public int getCurrentState()
Controller's state at the time this event was
generatedController's current state.public int getTargetState()
Controller's target state at the time this event
was generated.Controller's target state.public String toString()
toString in class ControllerEventCopyright © 2012 code4tv.com. All Rights Reserved.