Interface View
- All Known Implementing Classes:
- AbstractMvcView,- JsfView,- ServletMvcView
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.
- Author:
- Keith Donald, Jeremy Grelle
- See Also:
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionGet the flow event the current state should handle.A memento holding the results of processing a user event.booleanTrue if a call toprocessUserEvent()raised a flow event the current state should handle.voidProcess the queued user event.voidrender()Render this view's content.voidSaves any state associated with this view out to view scope.booleanTrue if there is a user event queued this view should process.
- 
Field Details- 
RENDER_FRAGMENTS_ATTRIBUTEWell-known attribute name for storing a render fragments value.- See Also:
 
- 
USER_EVENT_STATE_ATTRIBUTEWell-known attribute name for storing the results of processing a user event- See Also:
 
 
- 
- 
Method Details- 
renderRender this view's content.- Throws:
- IOException- if an IO Exception occured rendering the view
 
- 
userEventQueuedboolean userEventQueued()True if there is a user event queued this view should process.- Returns:
- true if a user event is queued, false if not
 
- 
processUserEventvoid processUserEvent()Process the queued user event. Should only be called whenuserEventQueued()returns true. After calling this method, a flow event may be raised that should be handled in the Web Flow system.- See Also:
 
- 
hasFlowEventboolean hasFlowEvent()True if a call toprocessUserEvent()raised a flow event the current state should handle. CallgetFlowEvent()to access the Event.- Returns:
- true if yes, false otherwise
 
- 
getFlowEventEvent getFlowEvent()Get the flow event the current state should handle. Returns an Event object whenhasFlowEvent()returns true. Returnsnullotherwise.- Returns:
- the event, or nullif there is no event for the flow system to handle
 
- 
getUserEventStateSerializable getUserEventState()A memento holding the results of processing a user event. Used to allow transient view state such as binding and validation errors to survive a flow execution redirect.- Returns:
- the serializable user event state object, or null if no event state needs managing
- See Also:
 
- 
saveStatevoid saveState()Saves any state associated with this view out to view scope. Called when exiting aViewStateto 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.
 
-