|
|||||||||||
| 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.launch.AbstractLoadPreferencesLaunchTask
Reads the Preferences of the skeleton and applies it to the application frame. This class extracts the common characteristics of the SWING and SWT load preferences launch task.
| Field Summary | |
protected java.lang.String |
DEFAULT_PREFERENCES_LOCATION
Location for the default preferences. |
| 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 | |
AbstractLoadPreferencesLaunchTask(ApplicationFrame applicationFrame)
Constructor specifying the ApplicationFrame to use. |
|
AbstractLoadPreferencesLaunchTask(ApplicationFrame applicationFrame,
java.lang.String filename,
java.lang.Class loadClass,
java.lang.String defaultPreferences)
Creates the LoadRulesLaunchTask based on the given
filename and Class to load the file.
|
|
| Method Summary | |
protected abstract void |
enableToolTipManager(boolean b)
Since the en- and disabling of a ToolTipManager is platform dependent a deriving class have to implement this. |
protected java.lang.String |
getDefaultPreferences()
Returns the name of the file with all the default preferences. |
protected java.lang.String |
getFilename()
Returns the name of the preferences file. |
protected java.lang.Class |
getLoadClass()
When loading resource from jar files or other locations you may need a Class instance. |
protected abstract void |
initPreferenceListeners(Preferences prefs)
This initializes all preferences listeners |
protected abstract void |
managingPreferences(Preferences prefs)
This should connect the applictaion frame and a suitable PreferenceHelper |
int |
run()
The run method of this launch task. |
| Methods inherited from class com.tensegrity.skeleton.launch.LoadFileLaunchTask |
getName |
| 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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected final java.lang.String DEFAULT_PREFERENCES_LOCATION
getDefaultPreferences() method to specify a
different location.
| Constructor Detail |
public AbstractLoadPreferencesLaunchTask(ApplicationFrame applicationFrame)
ApplicationFrame to use.
applicationFrame - the ApplicationFrame to use.
public AbstractLoadPreferencesLaunchTask(ApplicationFrame applicationFrame,
java.lang.String filename,
java.lang.Class loadClass,
java.lang.String defaultPreferences)
LoadRulesLaunchTask based on the given
filename and Class to load the file.
Furthermore you can provide the location for the default preferences file.
applicationFrame - Application context for this LaunchTask.filename - a String which describes a filename.loadClass - the resource class to use for loading.defaultPreferences - location of the default preferences file| Method Detail |
protected java.lang.String getFilename()
getFilename in class LoadFileLaunchTaskLoadFileLaunchTask.getFilename()protected java.lang.String getDefaultPreferences()
protected java.lang.Class getLoadClass()
LoadFileLaunchTasknull to load from absolute file.
getLoadClass in class LoadFileLaunchTaskLoadFileLaunchTask.getLoadClass()
public final int run()
throws java.lang.Exception
LaunchTask
run in class LaunchTaskLAUNCHTASKSTATUS_* constants defined
in this interface.
java.lang.Exceptionprotected abstract void enableToolTipManager(boolean b)
ToolTipManager.sharedInstance().setEnabled(b);
b - protected abstract void managingPreferences(Preferences prefs)
prefs - protected abstract void initPreferenceListeners(Preferences prefs)
prefs -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||