|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.gui.launch.LaunchTask
A LaunchTask is a named, runnable object that can return
one of seven predefined execution states. This class assumes that its
run() method will be called only once during its life but makes
no further assumptions about the implementation details in derived classes.
You may think of a LaunchTask as command object stereotype.
Derived classes implement a particular initialization logic that is modular
in scope. The following classdiagram shows just a few concrete implementations
of this abstract class:
| Field Summary | |
protected java.lang.String |
lasterror
field that stores the recent error message |
static int |
LAUNCHTASKSTATUS_FATAL
Result status of launch task: Task failed, show message and cancel launch. |
static int |
LAUNCHTASKSTATUS_FATAL_RETRY
Result status of launch task: Task failed, show message box close/retry; * cancel launch when close is choosen * retry launch task when retry is choosen after returning this, the launch task should return information about the error in the getError() |
static int |
LAUNCHTASKSTATUS_SERIOUS
Result status of launch task: Task failed but the task is not necessarily needed for the application, user decides whether to cancel launch of application or to proceed by showing a yes/no message box and choose. |
static int |
LAUNCHTASKSTATUS_SERIOUS_RETRY
Result status of launch task: Task failed but the task is not necessarily needed for the application, user decides whether to cancel launch of application or to proceed or to start the launch task again by showing a yes/no/retry message box and choose. |
static int |
LAUNCHTASKSTATUS_SHUTDOWN
Result status of launch task: Task failed, cancel launch silently |
static int |
LAUNCHTASKSTATUS_SUCCESS
Result status of launch task: Task successful, continue launch |
static int |
LAUNCHTASKSTATUS_WARNING
Result status of launch task: Task failed (partially), continue launch with warning output (no message box) |
| Constructor Summary | |
LaunchTask()
Constructs a new LaunchTask. |
|
| Method Summary | |
java.lang.String |
getError()
Returns the last error or warning string. |
abstract java.lang.String |
getName()
Returns the name of this launch task. |
java.lang.String |
getStatusDetails()
Returns details about the currently performed action, that can be shown in the application launcher. |
java.lang.String |
getStatusPrefix()
Returns the prefix that is shown before the name of the launch task in the status text of the application launcher. |
abstract int |
run()
The run method of this launch task. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int LAUNCHTASKSTATUS_SUCCESS
public static final int LAUNCHTASKSTATUS_FATAL
getError()
public static final int LAUNCHTASKSTATUS_WARNING
public static final int LAUNCHTASKSTATUS_SHUTDOWN
public static final int LAUNCHTASKSTATUS_SERIOUS
getError()
public static final int LAUNCHTASKSTATUS_FATAL_RETRY
getError()
public static final int LAUNCHTASKSTATUS_SERIOUS_RETRY
getError()
protected java.lang.String lasterror
| Constructor Detail |
public LaunchTask()
| Method Detail |
public abstract java.lang.String getName()
public java.lang.String getStatusDetails()
public java.lang.String getStatusPrefix()
public abstract int run()
throws java.lang.Exception
LAUNCHTASKSTATUS_* constants defined
in this interface.
java.lang.Exceptionpublic java.lang.String getError()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||