net.dpml.state
Class StateEvent
java.lang.Object
java.util.EventObject
net.dpml.state.StateEvent
- All Implemented Interfaces:
- Serializable
public class StateEvent
- extends EventObject
Event triggered as a result of a state change.
- Version:
- 1.2.0
- Author:
- Digital Product Meta Library
- See Also:
- Serialized Form
Method Summary |
State |
getFromState()
Return the state that existed prior to the transition. |
State |
getToState()
Return the state that was established by a transition. |
StateEvent
public StateEvent(Object source,
State from,
State to)
- Construct a new
StateEvent
.
- Parameters:
source
- the source compoent modelfrom
- the originating stateto
- the new current state
getFromState
public State getFromState()
- Return the state that existed prior to the transition.
- Returns:
- the original state
getToState
public State getToState()
- Return the state that was established by a transition.
- Returns:
- the new current state