|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface for Task.
Tasks are java objects which implement a workflow in its method run().
| Method Summary | |
void |
call(ITask subTask)
Calls a Task as subtask of this Task. |
void |
callBlocking(at.spardat.xma.boot.component.IXMAControl page)
Calls a component or page and waits until it is closed. |
void |
callNonBlocking(at.spardat.xma.boot.component.IXMAControl page)
Calls a component or page and returns imediately. |
boolean |
closeRequested()
Closes the Task. |
boolean |
closeRequested(boolean show)
Closes the Task. |
boolean |
contains(IMenuItem item)
Determine if the given MenuItem is contained directly in the submenu of the MenuItem of this Task. |
java.lang.String |
getContextString()
Get the context string of this task. |
IMenuItem |
getMenu()
Get the menu item of this Task. |
IEmbeddable |
getPage()
Get the page or component embedded or called by this Task |
ITask |
getParentTask()
Get the parent Task of this Task. |
ITask |
getSubTask()
Get the direct subtask of this Task. |
boolean |
isRunfinished()
Tells if the run()-method of this Task is finished, but the Task is still active. |
void |
pageClosed(boolean show)
Removes the component or page on top of the call stack. |
void |
run()
This method is called every time the Task is called. |
void |
setAppShell(IAppShell appShell)
Set the AppShell of this Task. |
void |
setMenu(IMenuItem item)
Set the menu item of this Task. |
void |
setParentTask(ITask parent)
Set the parent Task of this Task. |
void |
setRunfinished()
Marks the Task after its run()-method has finished. |
void |
setSubTask(ITask subtask)
Set the subtask of this Task. |
void |
showTopPage()
Refresh the page on top of the call stack to the screen. |
void |
start(IAppShell appShell)
Starts the Task by calling it as subtask of the task on top of the callstack of the given appShell. |
void |
start(ITask parentTask)
Starts the Task by calling it as subtask of the given parent task. |
| Method Detail |
public void run()
run in interface java.lang.Runnablepublic java.lang.String getContextString()
public void call(ITask subTask)
run() method.
subTask - to call.public void start(ITask parentTask)
parentTask - public void start(IAppShell appShell)
appShell - public boolean closeRequested()
public boolean closeRequested(boolean show)
show - if true refresh the screen
if false the screen is not refreshed
public void callBlocking(at.spardat.xma.boot.component.IXMAControl page)
page - to embeddpublic void callNonBlocking(at.spardat.xma.boot.component.IXMAControl page)
page - to embeddpublic void pageClosed(boolean show)
show - if true refresh the screen
if false the screen is not refreshedpublic void showTopPage()
public boolean contains(IMenuItem item)
item - to test
public IEmbeddable getPage()
public IMenuItem getMenu()
public void setMenu(IMenuItem item)
item - where this Task can add its submenu.public ITask getParentTask()
public void setParentTask(ITask parent)
parent - task to set.public ITask getSubTask()
public void setSubTask(ITask subtask)
subtask - to set.public void setAppShell(IAppShell appShell)
appShell - public boolean isRunfinished()
public void setRunfinished()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||