com.tensegrity.skeleton.swing.launch
Class SetPreferencesLaunchTask

java.lang.Object
  extended bycom.tensegrity.gui.launch.LaunchTask
      extended bycom.tensegrity.skeleton.swing.launch.AbstractLaunchTask
          extended bycom.tensegrity.skeleton.swing.launch.SetPreferencesLaunchTask

public class SetPreferencesLaunchTask
extends AbstractLaunchTask

Sets the associated Preference instance of an ApplicationFrame to reflect a previously persisted state.

Version:
$Id: SetPreferencesLaunchTask.java,v 1.20 2005/10/12 14:55:56 BurkhardWick Exp $
Author:
GillesIachelini, Andreas Ebbert

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
SetPreferencesLaunchTask(ApplicationFrame applicationFrame)
          Creates the SetPreferencesLaunchTask which sets the preferences on given ApplicationFrame.
 
Method Summary
 void postCreate(java.lang.Object object)
          Receives the Preferences instance right after they have been applied to the application frame.
 int run()
          Sets the preference instance of the ApplicationFrame.
 
Methods inherited from class com.tensegrity.skeleton.swing.launch.AbstractLaunchTask
findResourceText, getApplicationFrame, getName, 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

SetPreferencesLaunchTask

public SetPreferencesLaunchTask(ApplicationFrame applicationFrame)
Creates the SetPreferencesLaunchTask which sets the preferences on given ApplicationFrame.

Parameters:
applicationFrame - Application context for this LaunchTask.
Method Detail

postCreate

public void postCreate(java.lang.Object object)
Receives the Preferences instance right after they have been applied to the application frame.

Specified by:
postCreate in class AbstractLaunchTask
Parameters:
object -
See Also:
AbstractLaunchTask.postCreate(Object)

run

public final int run()
              throws java.lang.Exception
Sets the preference instance of the ApplicationFrame.

Specified by:
run in class LaunchTask
Returns:
one of the LAUNCHTASKSTATUS_* constants defined in this interface.
Throws:
java.lang.Exception
See Also:
LaunchTask.run()


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.