|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.webflow.engine.AnnotatedObject
org.springframework.webflow.engine.State
org.springframework.webflow.engine.TransitionableState
public abstract class TransitionableState
Abstract superclass for states that can execute a transition in response to an event.
Transition,
TransitionCriteria| Field Summary |
|---|
| Fields inherited from class org.springframework.webflow.engine.State |
|---|
logger |
| Fields inherited from class org.springframework.webflow.engine.AnnotatedObject |
|---|
CAPTION_PROPERTY, DESCRIPTION_PROPERTY |
| Constructor Summary | |
|---|---|
protected |
TransitionableState(Flow flow,
java.lang.String id)
Create a new transitionable state. |
| Method Summary | |
|---|---|
protected void |
appendToString(org.springframework.core.style.ToStringCreator creator)
Subclasses may override this hook method to stringify their internal state. |
void |
exit(RequestControlContext context)
Exit this state. |
ActionList |
getExitActionList()
Returns the list of actions executed by this state when it is exited. |
Transition |
getRequiredTransition(RequestContext context)
Get a transition in this state for given flow execution request context. |
TransitionDefinition[] |
getTransitions()
Returns the available transitions out of this state. |
TransitionSet |
getTransitionSet()
Returns the set of transitions. |
ViewSelection |
onEvent(RequestControlContext context)
Inform this state definition that an event was signaled in it. |
ViewSelection |
reenter(RequestControlContext context)
Re-enter this state. |
| Methods inherited from class org.springframework.webflow.engine.State |
|---|
doEnter, enter, equals, getEntryActionList, getExceptionHandlerSet, getFlow, getId, getOwner, handleException, hashCode, isStartState, toString |
| Methods inherited from class org.springframework.webflow.engine.AnnotatedObject |
|---|
getAttributeMap, getAttributes, getCaption, getDescription, setCaption, setDescription |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.springframework.webflow.definition.StateDefinition |
|---|
getId, getOwner |
| Methods inherited from interface org.springframework.webflow.definition.Annotated |
|---|
getAttributes, getCaption, getDescription |
| Constructor Detail |
|---|
protected TransitionableState(Flow flow,
java.lang.String id)
throws java.lang.IllegalArgumentException
flow - the owning flowid - the state identifier (must be unique to the flow)
java.lang.IllegalArgumentException - when this state cannot be added to given flow, for instance when the id is not
uniqueState.State(Flow, String),
getTransitionSet()| Method Detail |
|---|
public TransitionDefinition[] getTransitions()
TransitionableStateDefinition
getTransitions in interface TransitionableStateDefinitionpublic TransitionSet getTransitionSet()
public Transition getRequiredTransition(RequestContext context)
throws NoMatchingTransitionException
NoMatchingTransitionException - when a matching transition cannot be foundpublic ActionList getExitActionList()
public ViewSelection onEvent(RequestControlContext context)
throws NoMatchingTransitionException
RequestContext.getLastEvent()).
context - the flow execution control context
NoMatchingTransitionException - when a matching transition cannot be foundpublic ViewSelection reenter(RequestControlContext context)
By default, this just calls enter().
context - the flow control context in an executing flow (a client instance of a flow)
public void exit(RequestControlContext context)
context - the flow control contextprotected void appendToString(org.springframework.core.style.ToStringCreator creator)
State
appendToString in class Statecreator - the toString creator, to stringify properties
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||