|
|||||||||||
| 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
com.tensegrity.skeleton.launch.LoadFileLaunchTask
DO NOT USE THIS CLASS IT IS STILL UNDER CONSTRUCTION!!!
TODO (ah) to be continued...
Base class for LaunchTask implementations which have to deal with Resources.
Such a LaunchTask requires at least two properties: A Filename and an
optional instance of class Class, the various load-methods need, to identify
the location of the given (relative) filename. Only if the loaderclass-method
returns null, the getFilename must return an absolute filename.
| 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 | |
LoadFileLaunchTask(ApplicationFrame applicationFrame)
Creates a new LoadFileLaunchTask with no specific filename
and no class instance for the loading. |
|
LoadFileLaunchTask(ApplicationFrame applicationFrame,
java.lang.String nameKey)
Creates a new LoadFileLaunchTask with no specific filename
and no class instance for the loading. |
|
LoadFileLaunchTask(ApplicationFrame applicationFrame,
java.lang.String filename,
java.lang.Class loadClass)
Creates a new LoadFileLaunchTask with the given String
parameter as filename and Class instance as Loader. |
|
LoadFileLaunchTask(ApplicationFrame applicationFrame,
java.lang.String filename,
java.lang.Class loadClass,
java.lang.String nameKey)
Creates a new LoadFileLaunchTask with the given String
parameter as filename and Class instance as Loader. |
|
| Method Summary | |
protected java.lang.String |
getFilename()
Returns the filename of the resource, this launchtask should load. |
protected java.lang.Class |
getLoadClass()
When loading resource from jar files or other locations you may need a Class instance. |
java.lang.String |
getName()
Returns a concatenated string consisting of the "load" preposition and the filename. |
| Methods inherited from class com.tensegrity.skeleton.swing.launch.AbstractLaunchTask |
findResourceText, getApplicationFrame, getStatusPrefix, getStatusPrefixResourceKey, postCreate |
| 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 LoadFileLaunchTask(ApplicationFrame applicationFrame)
LoadFileLaunchTask with no specific filename
and no class instance for the loading.
applicationFrame - Application context for this LaunchTask.LoadFileLaunchTask(ApplicationFrame, String, Class)
public LoadFileLaunchTask(ApplicationFrame applicationFrame,
java.lang.String nameKey)
LoadFileLaunchTask with no specific filename
and no class instance for the loading.
applicationFrame - Application context for this LaunchTask.nameKey - the resource key for the name of the launch taskLoadFileLaunchTask(ApplicationFrame, String, Class)
public LoadFileLaunchTask(ApplicationFrame applicationFrame,
java.lang.String filename,
java.lang.Class loadClass)
LoadFileLaunchTask with the given String
parameter as filename and Class instance as Loader.
applicationFrame - Application context for this LaunchTask.filename - a String which describes a filename.loadClass - the resource class to use for loading.
public LoadFileLaunchTask(ApplicationFrame applicationFrame,
java.lang.String filename,
java.lang.Class loadClass,
java.lang.String nameKey)
LoadFileLaunchTask with the given String
parameter as filename and Class instance as Loader.
applicationFrame - Application context for this LaunchTask.filename - a String which describes a filename.loadClass - the resource class to use for loading.nameKey - the resource key for the name of the launch task| Method Detail |
protected java.lang.String getFilename()
getLoadClass method returns null, this
method should return a filename with full path.
protected java.lang.Class getLoadClass()
null to load from absolute file.
public java.lang.String getName()
getName in class AbstractLaunchTaskLaunchTask.getName()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||