|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectat.spardat.xma.appshell.Task
Tasks are java objects which implement a workflow in its method ITask.run().
| Field Summary | |
protected IAppShell |
app
The application shell containing this task. |
protected IMenuItem |
menu
The menu item containing this task. |
| Constructor Summary | |
Task(AppShell app)
creates a Task |
|
Task(AppShell app,
IMenuItem menu)
creates a Task |
|
Task(ComponentClient comp)
creates at Task |
|
| 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. |
ComponentClient |
getComponent()
Get the component containing 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 |
isAutoDispose()
Tells if this task will automatically dispose the component started with callBlocking(IXMAControl)
or callNonBlocking(IXMAControl). |
boolean |
isCleanSubmenu()
Tells if this task will remove the submenu from its MenuItem in closeRequested. |
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 |
setAppShell(IAppShell appShell)
Set the AppShell of this Task. |
void |
setAutoDispose(boolean autoDispose)
Determine if this task should automatically dispose the component started with callBlocking(IXMAControl)
or callNonBlocking(IXMAControl). |
void |
setCleanSubmenu(boolean cleanSubmenu)
Determine if this task should remove the submenu from its MenuItem in closeRequested. |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface at.spardat.xma.appshell.ITask |
run |
| Field Detail |
protected IAppShell app
protected IMenuItem menu
| Constructor Detail |
public Task(ComponentClient comp)
public Task(AppShell app)
app - the AppShell containing the Task
public Task(AppShell app,
IMenuItem menu)
app - the AppShell containing the Taskmenu - the MenuItem where this Task adds its submenu.| Method Detail |
public void callBlocking(at.spardat.xma.boot.component.IXMAControl page)
callBlocking in interface ITaskpage - to embeddpublic void callNonBlocking(at.spardat.xma.boot.component.IXMAControl page)
callNonBlocking in interface ITaskpage - to embeddpublic void pageClosed(boolean show)
pageClosed in interface ITaskshow - if true refresh the screen
if false the screen is not refreshedpublic void showTopPage()
showTopPage in interface ITaskpublic void start(ITask parentTask)
start in interface ITaskparentTask - public void start(IAppShell appShell)
start in interface ITaskappShell - public void call(ITask subTask)
ITask.run() method.
call in interface ITasksubTask - to call.public boolean closeRequested()
closeRequested in interface ITaskpublic boolean closeRequested(boolean show)
closeRequested in interface ITaskshow - if true refresh the screen
if false the screen is not refreshed
public ITask getParentTask()
getParentTask in interface ITaskpublic ITask getSubTask()
getSubTask in interface ITaskpublic IEmbeddable getPage()
getPage in interface ITaskpublic boolean contains(IMenuItem item)
contains in interface ITaskitem - to test
public java.lang.String getContextString()
getContextString in interface ITaskpublic IMenuItem getMenu()
getMenu in interface ITaskpublic void setMenu(IMenuItem item)
setMenu in interface ITaskitem - where this Task can add its submenu.public void setParentTask(ITask parent)
setParentTask in interface ITaskparent - task to set.public void setSubTask(ITask subtask)
setSubTask in interface ITasksubtask - to set.public void setAppShell(IAppShell appShell)
setAppShell in interface ITaskappShell - public ComponentClient getComponent()
public boolean isRunfinished()
isRunfinished in interface ITaskpublic void setRunfinished()
setRunfinished in interface ITaskpublic boolean isCleanSubmenu()
setCleanSubmenu(boolean).
public void setCleanSubmenu(boolean cleanSubmenu)
cleanSubmenu - true means remove it, false means do not change the menu while closing.public boolean isAutoDispose()
callBlocking(IXMAControl)
or callNonBlocking(IXMAControl).
public void setAutoDispose(boolean autoDispose)
callBlocking(IXMAControl)
or callNonBlocking(IXMAControl).
autoDispose - true means dispose it after usage, false means to not dispose it automatically
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||