org.strutsme.wishlist.client.control
Class ActionDispatcher

java.lang.Object
  extended by org.strutsme.wishlist.client.control.ActionDispatcher

public final class ActionDispatcher
extends java.lang.Object

The responsibility of this class is to control and execute single steps of the workflow of this application.

Author:
lbusmann

Method Summary
 void executeAction(java.lang.String actionName)
          executes the action.
 void executeAction(java.lang.String actionName, java.lang.String paramName, java.lang.String paramValue)
          executes the action with name actionName.
 void executeAction(java.lang.String actionName, java.lang.String paramName, java.lang.String paramValue, BaseDtoImpl formData)
          executes the action with name actionName.
 void executeResponseAction()
          handles the response of the last serverAction.
static ActionDispatcher getInstance()
          singleton accessor method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ActionDispatcher getInstance()
singleton accessor method.

Returns:
a unique instance of this class.

executeAction

public void executeAction(java.lang.String actionName)
executes the action.

Parameters:
actionName - the action to execute.

executeResponseAction

public void executeResponseAction()
handles the response of the last serverAction.


executeAction

public void executeAction(java.lang.String actionName,
                          java.lang.String paramName,
                          java.lang.String paramValue)
executes the action with name actionName.

Parameters:
actionName - the name of the action to perform
paramName - the name of the actionparameter
paramValue - the value of the actionparameter

executeAction

public void executeAction(java.lang.String actionName,
                          java.lang.String paramName,
                          java.lang.String paramValue,
                          BaseDtoImpl formData)
executes the action with name actionName.

Parameters:
actionName - the name of the action to perform
paramName - the name of the actionparameter
paramValue - the value of the actionparameter
formData - the data of the form