org.springframework.webflow.engine.model
Class ViewStateModel

java.lang.Object
  extended by org.springframework.webflow.engine.model.AbstractModel
      extended by org.springframework.webflow.engine.model.AbstractStateModel
          extended by org.springframework.webflow.engine.model.AbstractTransitionableStateModel
              extended by org.springframework.webflow.engine.model.ViewStateModel
All Implemented Interfaces:
Model

public class ViewStateModel
extends AbstractTransitionableStateModel

Model support for view states.

Author:
Scott Andrews

Constructor Summary
ViewStateModel(String id)
          Create a view state model
 
Method Summary
 Model createCopy()
          Create a deep copy of this model.
 BinderModel getBinder()
           
 String getModel()
           
 LinkedList getOnRenderActions()
           
 String getPopup()
           
 String getRedirect()
           
 LinkedList getVars()
           
 String getView()
           
 boolean isMergeableWith(Model model)
          Determine if the model is able to be merged into the current model
 void merge(Model model)
          Merge the model into the current model
 void setBinder(BinderModel binder)
           
 void setModel(String model)
           
 void setOnRenderActions(LinkedList onRenderActions)
           
 void setPopup(String popup)
           
 void setRedirect(String redirect)
           
 void setVars(LinkedList vars)
           
 void setView(String view)
           
 
Methods inherited from class org.springframework.webflow.engine.model.AbstractTransitionableStateModel
getOnExitActions, getTransitions, setOnExitActions, setTransitions
 
Methods inherited from class org.springframework.webflow.engine.model.AbstractStateModel
getAttributes, getExceptionHandlers, getId, getOnEntryActions, getParent, getSecured, setAttributes, setExceptionHandlers, setId, setOnEntryActions, setParent, setSecured
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewStateModel

public ViewStateModel(String id)
Create a view state model

Parameters:
id - the identifier of the state
Method Detail

isMergeableWith

public boolean isMergeableWith(Model model)
Description copied from interface: Model
Determine if the model is able to be merged into the current model

Parameters:
model - the model to compare
Returns:
true if able to merge

merge

public void merge(Model model)
Description copied from interface: Model
Merge the model into the current model

Parameters:
model - the model to merge with

createCopy

public Model createCopy()
Description copied from interface: Model
Create a deep copy of this model. Needed when merging models and collections.

Returns:
a deep copy of this model

getView

public String getView()
Returns:
the view

setView

public void setView(String view)
Parameters:
view - the view to set

getRedirect

public String getRedirect()
Returns:
the redirect

setRedirect

public void setRedirect(String redirect)
Parameters:
redirect - the redirect to set

getPopup

public String getPopup()
Returns:
the popup

setPopup

public void setPopup(String popup)
Parameters:
popup - the popup to set

getModel

public String getModel()
Returns:
the model

setModel

public void setModel(String model)
Parameters:
model - the model to set

getVars

public LinkedList getVars()
Returns:
the vars

setVars

public void setVars(LinkedList vars)
Parameters:
vars - the vars to set

getBinder

public BinderModel getBinder()

setBinder

public void setBinder(BinderModel binder)

getOnRenderActions

public LinkedList getOnRenderActions()
Returns:
the on render actions

setOnRenderActions

public void setOnRenderActions(LinkedList onRenderActions)
Parameters:
onRenderActions - the on render actions to set