org.apache.shale.dialog.scxml.action
Class ViewAction

java.lang.Object
  extended by org.apache.commons.scxml.model.Action
      extended by org.apache.shale.dialog.scxml.action.ViewAction
All Implemented Interfaces:
Serializable, org.apache.commons.scxml.model.NamespacePrefixesHolder

public class ViewAction
extends org.apache.commons.scxml.model.Action

Custom Commons SCXML action to set the JSF view identifier of the next view to be rendered by this dialog.

Since:
1.0.4 $Id: ViewAction.java 486006 2006-12-12 03:46:29Z rahul $
See Also:
Serialized Form

Constructor Summary
ViewAction()
           
 
Method Summary
 void execute(org.apache.commons.scxml.EventDispatcher evtDispatcher, org.apache.commons.scxml.ErrorReporter errRep, org.apache.commons.scxml.SCInstance scInstance, Log appLog, Collection derivedEvents)
          Set nextViewId in dialog properties, which will be the next view rendered by this dialog.
 String getViewId()
          Get the view identifier.
 void setViewId(String viewId)
          Set the view identifier.
 
Methods inherited from class org.apache.commons.scxml.model.Action
getNamespaces, getNamespacesKey, getParent, getParentState, setNamespaces, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewAction

public ViewAction()
Method Detail

execute

public void execute(org.apache.commons.scxml.EventDispatcher evtDispatcher,
                    org.apache.commons.scxml.ErrorReporter errRep,
                    org.apache.commons.scxml.SCInstance scInstance,
                    Log appLog,
                    Collection derivedEvents)
             throws org.apache.commons.scxml.model.ModelException,
                    org.apache.commons.scxml.SCXMLExpressionException

Set nextViewId in dialog properties, which will be the next view rendered by this dialog.

Specified by:
execute in class org.apache.commons.scxml.model.Action
Parameters:
evtDispatcher - The EventDispatcher for this execution instance
errRep - The ErrorReporter
scInstance - The state machine execution instance information
appLog - The application log
derivedEvents - The collection of internal events
Throws:
org.apache.commons.scxml.model.ModelException - If execution causes a non-deterministic state
org.apache.commons.scxml.SCXMLExpressionException - Bad expression

getViewId

public String getViewId()
Get the view identifier.

Returns:
The view identifier

setViewId

public void setViewId(String viewId)
Set the view identifier.

Parameters:
viewId - The view identifier


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