|
|||||||||||
| 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.LoadPreferencesLaunchTask
Reads the stored Preferences and applies the stored settings.
| Field Summary | |
protected java.lang.String |
DEFAULT_PREFERENCES_LOCATION
Location for the default preferences. |
protected java.util.Map |
mapLookAndFeelMapping
mapLookAndFeelMapping is used to map a
LookAndFeel to a different one. |
| 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 | |
LoadPreferencesLaunchTask(ApplicationFrame applicationFrame)
Constructor specifying the ApplicationFrame to use. |
|
LoadPreferencesLaunchTask(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 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. |
void |
postCreate(java.lang.Object object)
Receives the Preferences instance that will set for this application. |
int |
run()
The run method of this launch task. |
| 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 |
| Field Detail |
protected final java.lang.String DEFAULT_PREFERENCES_LOCATION
getDefaultPreferences() method to specify a
different location.
protected java.util.Map mapLookAndFeelMapping
mapLookAndFeelMapping is used to map a
LookAndFeel to a different one. The map contains class
names of installed LookAndFeels for both key and value.
It is used to map the fallback LAF (System LAF) to a desired one when
the original LAF that should be set does not exist
(e.g. "Windows" on Linux).
| Constructor Detail |
public LoadPreferencesLaunchTask(ApplicationFrame applicationFrame)
ApplicationFrame to use.
applicationFrame - the ApplicationFrame to use.
public LoadPreferencesLaunchTask(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 void postCreate(java.lang.Object object)
postCreate in class AbstractLaunchTaskobject - AbstractLaunchTask.postCreate(Object)
public final int run()
throws java.lang.Exception
LaunchTask
run in class LaunchTaskLAUNCHTASKSTATUS_* constants defined
in this interface.
java.lang.Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||