|
|||||||||
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
org.springframework.webflow.engine.ViewState
public class ViewState
A view state is a state that issues a response to the user, for example, for soliciting form input.
To accomplish this, a ViewState
makes a ViewSelection
, which contains the necessary
information to issue a suitable response.
ViewSelector
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 | |
---|---|
ViewState(Flow flow,
java.lang.String id)
Create a new view state. |
Method Summary | |
---|---|
protected void |
appendToString(org.springframework.core.style.ToStringCreator creator)
Subclasses may override this hook method to stringify their internal state. |
protected ViewSelection |
doEnter(RequestControlContext context)
Specialization of State's doEnter template method that executes behavior specific to this state
type in polymorphic fashion. |
ActionList |
getRenderActionList()
Returns the list of actions executable by this view state on entry and on refresh. |
ViewSelector |
getViewSelector()
Returns the strategy used to select the view to render in this view state. |
ViewSelection |
refresh(RequestContext context)
Request that the current view selection be reconstituted to support reissuing the response. |
void |
setViewSelector(ViewSelector viewSelector)
Sets the strategy used to select the view to render in this view state. |
Methods inherited from class org.springframework.webflow.engine.TransitionableState |
---|
exit, getExitActionList, getRequiredTransition, getTransitions, getTransitionSet, onEvent, reenter |
Methods inherited from class org.springframework.webflow.engine.State |
---|
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 |
---|
public ViewState(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, e.g. because the id is not uniqueMethod Detail |
---|
public ViewSelector getViewSelector()
public void setViewSelector(ViewSelector viewSelector)
public ActionList getRenderActionList()
protected ViewSelection doEnter(RequestControlContext context) throws FlowExecutionException
doEnter
template method that executes behavior specific to this state
type in polymorphic fashion.
Returns a view selection indicating a response to issue. The view selection typically contains all the data necessary to issue the response.
doEnter
in class State
context
- the control context for the currently executing flow, used by this state to manipulate the flow
execution
FlowExecutionException
- if an exception occurs in this statepublic ViewSelection refresh(RequestContext context) throws FlowExecutionException
context
- the request context
FlowExecutionException
- if an exception occurs in this stateprotected void appendToString(org.springframework.core.style.ToStringCreator creator)
State
appendToString
in class TransitionableState
creator
- the toString creator, to stringify properties
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |