|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.gui.launch.LaunchTask
com.tensegrity.skeleton.swing.launch.AbstractLaunchTask
This abstract class represents a LaunchTask with an direct
association to an ApplicationFrame. An
AbstractLaunchTask defines an entry point for subclasses to
modify the created item in the run method. The idea is that
subclasses execute their run method and then pass the created object to
the postCreate method to allow for modifications of a
previously created item.
| Field Summary |
| Fields inherited from class com.tensegrity.gui.launch.LaunchTask |
lasterror, LAUNCHTASKSTATUS_FATAL, LAUNCHTASKSTATUS_FATAL_RETRY, LAUNCHTASKSTATUS_SERIOUS, LAUNCHTASKSTATUS_SERIOUS_RETRY, LAUNCHTASKSTATUS_SHUTDOWN, LAUNCHTASKSTATUS_SUCCESS, LAUNCHTASKSTATUS_WARNING |
| Constructor Summary | |
AbstractLaunchTask(ApplicationFrame applicationFrame)
Creates a new AbstractLaunchTask associated with the given ApplicationFrame. |
|
AbstractLaunchTask(ApplicationFrame applicationFrame,
java.lang.String nameKey)
Creates a new AbstractLaunchTask associated with the given ApplicationFrame. |
|
| Method Summary | |
protected java.lang.String |
findResourceText(java.lang.String key,
java.lang.String defText)
Returns a text from the UIManager or defText if no
corresponding entry exists. |
protected ApplicationFrame |
getApplicationFrame()
Returns the ApplicationFrame associated with this LaunchTask. |
java.lang.String |
getName()
Returns the name of this launch task. |
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. |
protected java.lang.String |
getStatusPrefixResourceKey()
Override this method to set a resource key for the prefix of the status text rather than setting the text to a fixed value. |
abstract void |
postCreate(java.lang.Object object)
This method is called right before the run method is
finished. |
| Methods inherited from class com.tensegrity.gui.launch.LaunchTask |
getError, getStatusDetails, run |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AbstractLaunchTask(ApplicationFrame applicationFrame)
IllegalArgumentException if the
parameter is null.
applicationFrame - a valid instance of ApplicationFrame.
public AbstractLaunchTask(ApplicationFrame applicationFrame,
java.lang.String nameKey)
IllegalArgumentException if the
parameter is null.
applicationFrame - a valid instance of ApplicationFrame.nameKey - the resource key for the name of this launchtask| Method Detail |
public java.lang.String getName()
LaunchTask
getName in class LaunchTaskprotected final ApplicationFrame getApplicationFrame()
public java.lang.String getStatusPrefix()
LaunchTask
getStatusPrefix in class LaunchTaskprotected java.lang.String getStatusPrefixResourceKey()
protected final java.lang.String findResourceText(java.lang.String key,
java.lang.String defText)
defText if no
corresponding entry exists.
key - The key to get the text resource fordefText - The default text to use when there is no text
for the given key
defText
if no corresponding entry exists.public abstract void postCreate(java.lang.Object object)
run method is
finished. This method is an entry point to modify a created item.
object -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||