net.sf.doolin.gui.action.support
Class MethodActionDelegate<E>

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

public class MethodActionDelegate<E>
extends Object
implements ActionDelegate<E>

Delegates the call to a method on the model.

Author:
Damien Coraboeuf

Constructor Summary
MethodActionDelegate()
           
 
Method Summary
 void call(ActionContext actionContext, E parameter)
          Calls the delegate
 void setMethodName(String methodName)
          Sets the name of the method to call
 void setPropertyPath(String propertyPath)
          Sets the path to the property of the context data to call the method on.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodActionDelegate

public MethodActionDelegate()
Method Detail

call

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

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

setPropertyPath

public void setPropertyPath(String propertyPath)
Sets the path to the property of the context data to call the method on.

Parameters:
propertyPath - Property path

setMethodName

public void setMethodName(String methodName)
Sets the name of the method to call

Parameters:
methodName - Method name


Copyright © 2011. All Rights Reserved.