|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doolin.gui.action.AbstractGUIAction
net.sf.doolin.gui.action.AbstractSimpleGUIAction
net.sf.doolin.gui.action.DialogAction<T>
net.sf.doolin.gui.action.TaskDialogAction<T,R>
T - Type of the input to the taskR - Type of the return from the taskpublic class TaskDialogAction<T,R>
This action executes a GUITask after a dialog has been displayed and
validated.
| Constructor Summary | |
|---|---|
TaskDialogAction()
|
|
| Method Summary | |
|---|---|
GUITask<T,R> |
getTask()
Gets the task to executed |
GUITaskExecutor<T,R> |
getTaskExecutor()
Gets the task executor |
protected void |
onOK(ActionContext actionContext,
T bean)
Executes the task |
void |
setTask(GUITask<T,R> task)
Sets the task to execute |
void |
setTaskExecutor(GUITaskExecutor<T,R> taskExecutor)
Sets the task executor |
| Methods inherited from class net.sf.doolin.gui.action.DialogAction |
|---|
doExecute, getDialog, getModelFactory, onCancelled, setDialog, setModelFactory, setUseContext |
| Methods inherited from class net.sf.doolin.gui.action.AbstractSimpleGUIAction |
|---|
getIconId, getIconIDExpression, getId, getShortcut, getShortcutExpression, getTextExpression, getTip, getTipExpression, getTitle, init, setBeanName, setIconId, setShortcut, setTip, setTitle, toString |
| Methods inherited from class net.sf.doolin.gui.action.AbstractGUIAction |
|---|
execute, getActionContextData, getActionContextDataExtractor, getDisplayStateHandler, getIcon, getIconService, setActionContextDataExtractor, setDisplayStateHandler, setIconService |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TaskDialogAction()
| Method Detail |
|---|
public GUITask<T,R> getTask()
public GUITaskExecutor<T,R> getTaskExecutor()
protected void onOK(ActionContext actionContext,
T bean)
throws Exception
onOK in class DialogAction<T>actionContext - Action contextbean - Edited bean
Exception - If an error occurs while validating the dialogGUITaskExecutor.execute(ActionContext, Object, GUITask)public void setTask(GUITask<T,R> task)
task - Task to executepublic void setTaskExecutor(GUITaskExecutor<T,R> taskExecutor)
taskExecutor - Task executor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||