com.tensegrity.skeleton.swing.launch
Class HelpMenuLaunchTask

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

public class HelpMenuLaunchTask
extends MenuLaunchTask

Creates a top level menu entry providing access to the applications help content.

Version:
$Id: HelpMenuLaunchTask.java,v 1.28 2005/09/20 09:24:58 AndreasEbbert Exp $
Author:
Andreas Ebbert

Nested Class Summary
 
Nested classes inherited from class com.tensegrity.skeleton.swing.launch.MenuLaunchTask
MenuLaunchTask.MenuItemWrapper
 
Field Summary
static java.lang.String SYSTEM_PROPERTY_SHOW_DEBUGMENUITEMS
          Defines the key for the system-property that is read and if it is set to 'true' will cause debug-menuitems to be displayed.
 
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
HelpMenuLaunchTask(ApplicationFrame applicationFrame)
          Constructor specifying the ApplicationFrame to use.
HelpMenuLaunchTask(ApplicationFrame applicationFrame, boolean helpAvailable)
          Constructor specifying the ApplicationFrame and if help for this application is provided.
 
Method Summary
 void postCreate(java.lang.Object object)
          This method is called right before the run method is finished.
 int run()
          The run method of this launch task.
 
Methods inherited from class com.tensegrity.skeleton.swing.launch.MenuLaunchTask
addToMenu, addToMenu, addToMenu, addToMenu, addToMenu, addToMenu, addToMenu, addToMenu, addToMenu, createMenu, getMenuItem
 
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
 

Field Detail

SYSTEM_PROPERTY_SHOW_DEBUGMENUITEMS

public static final java.lang.String SYSTEM_PROPERTY_SHOW_DEBUGMENUITEMS
Defines the key for the system-property that is read and if it is set to 'true' will cause debug-menuitems to be displayed.

See Also:
Constant Field Values
Constructor Detail

HelpMenuLaunchTask

public HelpMenuLaunchTask(ApplicationFrame applicationFrame)
Constructor specifying the ApplicationFrame to use.

Parameters:
applicationFrame - the ApplicationFrame to use.

HelpMenuLaunchTask

public HelpMenuLaunchTask(ApplicationFrame applicationFrame,
                          boolean helpAvailable)
Constructor specifying the ApplicationFrame and if help for this application is provided.

Parameters:
applicationFrame - the ApplicationFrame to use.
helpAvailable - true, if there should be a help menu item for this application.
Method Detail

run

public int run()
        throws java.lang.Exception
Description copied from class: LaunchTask
The run method of this launch task. The returned status indicates what the invoker is supposed to do after the task executed.

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

postCreate

public void postCreate(java.lang.Object object)
Description copied from class: AbstractLaunchTask
This method is called right before the run method is finished. This method is an entry point to modify a created item.

Specified by:
postCreate in class AbstractLaunchTask
Parameters:
object -


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