|
||||||||||
| 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.GUITaskAction<B,R>
B - Type of the input to the GUITaskR - Type of the return from the GUITaskpublic class GUITaskAction<B,R>
This action launches a GUITask using an associated
GUITaskExecutor.
| Constructor Summary | |
|---|---|
GUITaskAction()
|
|
| Method Summary | |
|---|---|
protected void |
doExecute(ActionContext context)
Executes the action and throws any kind of error. |
String |
getPrompt()
Gets the expression that is used to prompt the user before the task is executed. |
void |
setPrompt(String prompt)
Sets the expression that is used to prompt the user before the task is executed. |
void |
setTask(GUITask<B,R> task)
Sets the task to execute. |
void |
setTaskExecutor(GUITaskExecutor<B,R> taskExecutor)
Sets the task executor used to execute the task |
void |
setUseContextData(boolean useContextData)
Deprecated. Use AbstractGUIAction.setActionContextDataExtractor(net.sf.doolin.gui.action.support.ActionContextDataExtractor) |
| 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 GUITaskAction()
| Method Detail |
|---|
protected void doExecute(ActionContext context)
throws Exception
AbstractGUIAction
doExecute in class AbstractGUIActioncontext - the context
Exception - the exceptionpublic String getPrompt()
null to disable the prompt.public void setPrompt(String prompt)
null.
prompt - Expression or null to disable the prompt.public void setTask(GUITask<B,R> task)
task - Task to executepublic void setTaskExecutor(GUITaskExecutor<B,R> taskExecutor)
taskExecutor - Task executor@Deprecated public void setUseContextData(boolean useContextData)
AbstractGUIAction.setActionContextDataExtractor(net.sf.doolin.gui.action.support.ActionContextDataExtractor)
contextual data or the
data of the action context.
useContextData - true if the contextual data must be used.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||