|
Spring Web Flow | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface View
Allows a client to participate in flow execution. Encapsulates behavior to send the client an appropriate response and handle the resulting event once the client responds.
ViewFactory
Field Summary | |
---|---|
static java.lang.String |
RENDER_FRAGMENTS_ATTRIBUTE
Well-known attribute name for storing a render fragments value. |
static java.lang.String |
USER_EVENT_STATE_ATTRIBUTE
Well-known attribute name for storing the results of processing a user event |
Method Summary | |
---|---|
Event |
getFlowEvent()
Get the flow event the current state should handle. |
java.io.Serializable |
getUserEventState()
A memento holding the results of processing a user event. |
boolean |
hasFlowEvent()
True if a call to processUserEvent() raised a flow event the current state should handle. |
void |
processUserEvent()
Process the queued user event. |
void |
render()
Render this view's content. |
void |
saveState()
Saves any state associated with this view out to view scope. |
boolean |
userEventQueued()
True if there is a user event queued this view should process. |
Field Detail |
---|
static final java.lang.String RENDER_FRAGMENTS_ATTRIBUTE
static final java.lang.String USER_EVENT_STATE_ATTRIBUTE
Method Detail |
---|
void render() throws java.io.IOException
java.io.IOException
- if an IO Exception occured rendering the viewboolean userEventQueued()
void processUserEvent()
userEventQueued()
returns true. After calling
this method, a flow event may be raised that should be handled in the Web Flow system.
hasFlowEvent()
boolean hasFlowEvent()
processUserEvent()
raised a flow event the current state should handle. Call
getFlowEvent()
to access the Event.
Event getFlowEvent()
hasFlowEvent()
returns
true. Returns null
otherwise.
null
if there is no event for the flow system to handlejava.io.Serializable getUserEventState()
processUserEvent()
void saveState()
ViewState
to allow for
any changes applied after postback processing to be captured and reflected when going back. Can be a no-op for
views that store no view state.
|
Spring Web Flow | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |