net.sf.doolin.gui.action.support
Class ActionProxyDelegate<T>

java.lang.Object
  extended by net.sf.doolin.gui.action.support.ActionProxyDelegate<T>
Type Parameters:
T - Type of the parameter
All Implemented Interfaces:
ActionDelegate<T>

public class ActionProxyDelegate<T>
extends Object
implements ActionDelegate<T>

This action set a property on the action context data and delegates to an action. If the property path is not set, the action context is not updated.

Author:
Damien Coraboeuf

Constructor Summary
ActionProxyDelegate()
           
 
Method Summary
 void call(ActionContext actionContext, T parameter)
          Calls the delegate
 GUIAction getAction()
          Returns the action to execute
 String getPropertyPath()
          Returns the path to the property to set
 boolean isUseContext()
          Checks if the data or the context must be used
 void setAction(GUIAction action)
          Sets the action to execute
 void setPropertyPath(String propertyPath)
          Sets the path to the property to set in the action context
 void setUseContext(boolean useContext)
          Sets if the data or the contextual data must be used
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionProxyDelegate

public ActionProxyDelegate()
Method Detail

call

public void call(ActionContext actionContext,
                 T parameter)
Description copied from interface: ActionDelegate
Calls the delegate

Specified by:
call in interface ActionDelegate<T>
Parameters:
actionContext - Action context
parameter - Parameter

getAction

public GUIAction getAction()
Returns the action to execute

Returns:
Action

getPropertyPath

public String getPropertyPath()
Returns the path to the property to set

Returns:
Property path

isUseContext

public boolean isUseContext()
Checks if the data or the context must be used

Returns:
true if the contextual data must be used

setAction

public void setAction(GUIAction action)
Sets the action to execute

Parameters:
action - Action

setPropertyPath

public void setPropertyPath(String propertyPath)
Sets the path to the property to set in the action context

Parameters:
propertyPath - Property path

setUseContext

public void setUseContext(boolean useContext)
Sets if the data or the contextual data must be used

Parameters:
useContext - true if the contextual data must be used


Copyright © 2011. All Rights Reserved.