org.apache.shale.dialog.basic.config
Class ViewStateImpl

java.lang.Object
  extended by org.apache.shale.dialog.basic.config.AbstractState
      extended by org.apache.shale.dialog.basic.config.ViewStateImpl
All Implemented Interfaces:
State, ViewState
Direct Known Subclasses:
EndStateImpl

public class ViewStateImpl
extends AbstractState
implements ViewState

ViewStateImpl is a basic implementation of ViewState.

Since:
1.0.4

Constructor Summary
ViewStateImpl()
           
 
Method Summary
 String getViewId()
          

Return the view identifier of the JavaServer Faces view to render if this state is entered.

 boolean isRedirect()
          

Return true if the transition to this view should be done with a redirect, instead of the normal view creation process.

 void setRedirect(boolean redirect)
          Set the redirect flag for this state.
 void setViewId(String viewId)
          Set the view identifier of the JavaServer Faces view to render if this state is entered.
 String toString()
          Render a printable version of this instance.
 
Methods inherited from class org.apache.shale.dialog.basic.config.AbstractState
addTransition, findTransition, getDialog, getName, getTransitionOutcomes, removeTransition, setDialog, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.shale.dialog.basic.model.State
findTransition, getDialog, getName, getTransitionOutcomes
 

Constructor Detail

ViewStateImpl

public ViewStateImpl()
Method Detail

isRedirect

public boolean isRedirect()

Return true if the transition to this view should be done with a redirect, instead of the normal view creation process.

Specified by:
isRedirect in interface ViewState

getViewId

public String getViewId()

Return the view identifier of the JavaServer Faces view to render if this state is entered.

Specified by:
getViewId in interface ViewState
Returns:
The view identifier of the JavaServer Faces view to render

toString

public String toString()

Render a printable version of this instance.

Overrides:
toString in class Object
Returns:
The printable version of this instance

setRedirect

public void setRedirect(boolean redirect)

Set the redirect flag for this state.

Parameters:
redirect - The new redirect flag

setViewId

public void setViewId(String viewId)

Set the view identifier of the JavaServer Faces view to render if this state is entered.

Parameters:
viewId - The new view identifier


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.