|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doolin.gui.action.task.AbstractGUITask<B,R>
net.sf.doolin.gui.action.task.MethodGUITask<B,R>
B - Type of bean sent to the taskR - Type of bean returned by the taskpublic class MethodGUITask<B,R>
Task based on the call of a method.
| Constructor Summary | |
|---|---|
MethodGUITask()
|
|
| Method Summary | |
|---|---|
R |
doInBackground(ActionContext actionContext,
B bean)
Gets the property on bean defined by the
propertyPath property and calls the methodName
method on it. |
void |
doOnResult(ActionContext actionContext,
B bean,
R result)
Does nothing. |
void |
setMethodName(String methodName)
Sets the method to call on the target property |
void |
setPropertyPath(String propertyPath)
Sets the path to the property of the input bean of the task. |
| Methods inherited from class net.sf.doolin.gui.action.task.AbstractGUITask |
|---|
doOnException, isDelegateException, setDelegateException |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MethodGUITask()
| Method Detail |
|---|
public R doInBackground(ActionContext actionContext,
B bean)
throws Exception
bean defined by the
propertyPath property and calls the methodName
method on it.
actionContext - Initial action contextbean - Bean sent to the task
Exception - In case of failure
public void doOnResult(ActionContext actionContext,
B bean,
R result)
actionContext - Initial action contextbean - Bean sent to the taskresult - Bean returned by the taskpublic void setMethodName(String methodName)
methodName - Method namepublic void setPropertyPath(String propertyPath)
propertyPath - Property path
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||