|
|||||||||||
| 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.swing.launch.LoadFileLaunchTask
com.tensegrity.skeleton.swing.launch.LoadRulesLaunchTask
Loads the rules.xml file.
| 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 | |
LoadRulesLaunchTask(ApplicationFrame applicationFrame)
Creates the LoadRulesLaunchTask. |
|
LoadRulesLaunchTask(ApplicationFrame applicationFrame,
java.lang.String filename,
java.lang.Class loadClass)
Creates the LoadRulesLaunchTask based on the given
filename and Class to load the file. |
|
| 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. |
void |
postCreate(java.lang.Object object)
Receives the newly created RuleRegistry and allows modifications before it'll be set at the application frame. |
int |
run()
Creates a new RuleRegistry from the given file by using the loadclass and sets it at the applicationframe. |
| Methods inherited from class com.tensegrity.skeleton.swing.launch.LoadFileLaunchTask |
getName |
| Methods inherited from class com.tensegrity.skeleton.swing.launch.AbstractLaunchTask |
findResourceText, getApplicationFrame, getStatusPrefix, getStatusPrefixResourceKey |
| Methods inherited from class com.tensegrity.gui.launch.LaunchTask |
getError, getStatusDetails |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LoadRulesLaunchTask(ApplicationFrame applicationFrame)
LoadRulesLaunchTask.
applicationFrame - Application context for this LaunchTask.
public LoadRulesLaunchTask(ApplicationFrame applicationFrame,
java.lang.String filename,
java.lang.Class loadClass)
LoadRulesLaunchTask based on the given
filename and Class to load the file.
applicationFrame - Application context for this LaunchTask.filename - a String which describes a filename.loadClass - the resource class to use for loading.| Method Detail |
protected java.lang.String getFilename()
LoadFileLaunchTaskgetLoadClass method returns null, this
method should return a filename with full path.
getFilename in class LoadFileLaunchTaskprotected java.lang.Class getLoadClass()
LoadFileLaunchTasknull to load from absolute file.
getLoadClass in class LoadFileLaunchTaskpublic void postCreate(java.lang.Object object)
postCreate in class AbstractLaunchTaskobject - AbstractLaunchTask.postCreate(Object)
public final int run()
throws java.lang.Exception
run in class LaunchTaskLAUNCHTASKSTATUS_* constants defined
in this interface.
java.lang.ExceptionLaunchTask.run()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||