|
|||||||||||
| 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
com.tensegrity.skeleton.swt.launch.SwtLoadRulesLaunchTask
This launch task is used in order to initialize the
RuleRegistry of a given ApplicationFrame in a SWT context.
| 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 | |
SwtLoadRulesLaunchTask(ApplicationFrame applicationFrame)
Creates the LoadRulesLaunchTask used in order to initialize the
RuleRegistry of the passed ApplicationFrame. |
|
SwtLoadRulesLaunchTask(ApplicationFrame applicationFrame,
java.lang.String filename,
java.lang.Class loadClass)
Creates the SwtLoadRulesLaunchTask based on the given
filename and loadClass used to load the rules
definition file(s). |
|
| 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.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 SwtLoadRulesLaunchTask(ApplicationFrame applicationFrame)
LoadRulesLaunchTask used in order to initialize the
RuleRegistry of the passed ApplicationFrame.
applicationFrame - Application context for this LaunchTask.
public SwtLoadRulesLaunchTask(ApplicationFrame applicationFrame,
java.lang.String filename,
java.lang.Class loadClass)
SwtLoadRulesLaunchTask based on the given
filename and loadClass used to load the rules
definition file(s).
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 - newly created RuleRegistryAbstractLaunchTask.postCreate(Object)
public final int run()
throws java.lang.Exception
run in class LaunchTaskLAUNCHTASKSTATUS_* constants defined in
this interface.
java.lang.Exception - ReadException
potentially thrown by
RuleRegistry.loadRulesFromResource(String, Class)LaunchTask.run(),
RuleRegistry.loadRulesFromResource(String, Class),
ApplicationFrame.setRuleRegistry(RuleRegistry)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||