Class ViewStateModel

All Implemented Interfaces:
Model

public class ViewStateModel extends AbstractTransitionableStateModel
Model support for view states.
Author:
Scott Andrews
  • Constructor Details

    • ViewStateModel

      public ViewStateModel(String id)
      Create a view state model
      Parameters:
      id - the identifier of the state
  • Method Details

    • 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
    • getValidationHints

      public String getValidationHints()
    • setValidationHints

      public void setValidationHints(String validationHints)
    • getVars

      public LinkedList<VarModel> getVars()
      Returns:
      the vars
    • setVars

      public void setVars(LinkedList<VarModel> vars)
      Parameters:
      vars - the vars to set
    • getBinder

      public BinderModel getBinder()
    • setBinder

      public void setBinder(BinderModel binder)
    • getOnRenderActions

      public LinkedList<AbstractActionModel> getOnRenderActions()
      Returns:
      the on render actions
    • setOnRenderActions

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