|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--planetj.dataengine.display.AbstractAction
|
+--planetj.dataengine.display.ReflectAction
A ReflectAction uses java reflection to invoke a method on a given Object.
| Field Summary |
| Fields inherited from class planetj.dataengine.display.AbstractAction |
DEFAULT_TYPE |
| Constructor Summary | |
ReflectAction(Class c,
String methodName)
ReflectAction constructor. |
|
ReflectAction(Class c,
String methodName,
Class[] parameterTypes)
ReflectMethodRowAction constructor. |
|
ReflectAction(String methodName)
ReflectMethodRowAction constructor. |
|
ReflectAction(String methodName,
Class[] parameterTypes)
ReflectMethodRowAction constructor. |
|
| Method Summary | |
Class |
getMethodClass()
Gets the Class containing the method to reflect. |
String |
getMethodName()
Gets the name of the method this action should reflect on a given Row. |
Class[] |
getParameterTypes()
Gets the parameter types classes to use when reflecting on a Row's method.. |
Object |
handleAction(Object o)
Refects this action's method on the given object. |
Object |
handleAction(Object o,
Object[] args)
Uses java reflection to invoke this action's method on the given Object. |
void |
setMethodClass(Class c)
Sets the Class contianing the method to reflect. |
void |
setMethodName(String methodName)
Sets the name of the method this action should reflect on a given Row. |
void |
setParameterTypes(Class[] parameterTypes)
Sets the parameter types the method this action should use when reflecting on a given Row. |
| Methods inherited from class planetj.dataengine.display.AbstractAction |
getType |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ReflectAction(Class c,
String methodName)
c - class containing methodmethodName - name of method to reflect
public ReflectAction(Class c,
String methodName,
Class[] parameterTypes)
c - class containing methodmethodName - name of method to reflect on the RowparameterTypes - array of class types for method parameterspublic ReflectAction(String methodName)
methodName - name of method to reflect on the Row
public ReflectAction(String methodName,
Class[] parameterTypes)
methodName - name of method to reflect on the Row| Method Detail |
public Class getMethodClass()
public String getMethodName()
public Class[] getParameterTypes()
public Object handleAction(Object o)
throws InvocationTargetException
handleAction in class AbstractActiono - Object to perform the action on
InvocationTargetException
public Object handleAction(Object o,
Object[] args)
throws InvocationTargetException
o - Object to reflect method on
InvocationTargetExceptionpublic void setMethodClass(Class c)
public void setMethodName(String methodName)
methodName - name of method to reflect on Row.public void setParameterTypes(Class[] parameterTypes)
parameterTypes - array of classes for method.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||