com.tensegrity.skeleton.swing.launch
Class WindowMenuLaunchTask

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.WindowMenuLaunchTask

public class WindowMenuLaunchTask
extends MenuLaunchTask

Initializes the ToolMenu and adds it to the application menu bar.

Version:
$Id: WindowMenuLaunchTask.java,v 1.10 2005/08/08 16:36:36 BurkhardWick Exp $
Author:
GillesIachelini

Nested Class Summary
 
Nested classes inherited from class com.tensegrity.skeleton.swing.launch.MenuLaunchTask
MenuLaunchTask.MenuItemWrapper
 
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
WindowMenuLaunchTask(ApplicationFrame applicationFrame)
          Creates the WindowMenuLaunchTask which creates the WindowMenu for the given ApplicationFrame.
 
Method Summary
 void postCreate(java.lang.Object object)
          Receives the MenuTool instance created by this launchTask.
 int run()
          Creates a new Menu, adds it to the UIMap and initializes the MenuTool of the application.
 
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
 

Constructor Detail

WindowMenuLaunchTask

public WindowMenuLaunchTask(ApplicationFrame applicationFrame)
Creates the WindowMenuLaunchTask which creates the WindowMenu for the given ApplicationFrame.

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

postCreate

public void postCreate(java.lang.Object object)
Receives the MenuTool instance created by this launchTask.

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

run

public final int run()
              throws java.lang.Exception
Creates a new Menu, adds it to the UIMap and initializes the MenuTool of the application.

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.