com.tensegrity.skeleton.swing.launch
Class ToolBarLaunchTask
java.lang.Object
com.tensegrity.gui.launch.LaunchTask
com.tensegrity.skeleton.swing.launch.AbstractLaunchTask
com.tensegrity.skeleton.swing.launch.AbstractToolBarLaunchTask
com.tensegrity.skeleton.swing.launch.ToolBarLaunchTask
- public class ToolBarLaunchTask
- extends AbstractToolBarLaunchTask
Class ToolBarLaunchTask creates a ToolBar and adds
various default commands to it. The created ToolBar is at index
0 of the ToolBar[] array.
You are encouraged to extend the ToolBarLaunchTask class,
override the postCreate() method and modify the previously created
ToolBar by adding and/or removing items. Similarly, you may define
your own ToolBarLaunchTask by extending the
AbstractToolBarLaunchTask.
You are able to add new items to the ToolBar by using the
utility methods from the parent class AbstractToolBarLaunchTask.
- Version:
- $Id: ToolBarLaunchTask.java,v 1.36 2005/11/03 16:04:11 KevinCVS Exp $
- Author:
- GillesIachelini
|
Method Summary |
void |
postCreate(java.lang.Object object)
Receives the ToolBar filled by this LaunchTask. |
int |
run()
The run method of this launch task. |
| Methods inherited from class com.tensegrity.skeleton.swing.launch.AbstractToolBarLaunchTask |
addSeparator, addSeparator, addToToolBar, addToToolBar, addToToolBar, addToToolBar, addToToolBar, addToToolBar, addToToolBar, addToToolBar, addToToolBar, addToToolBar, addToToolBar, addToToolBarToggleButton, addToToolBarToggleButton, addToToolBarToggleButton, addZoomCombo, createZoomCombo, fillZoomCombo, getIndexOf, getToolBar, removeToolbarComponent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ToolBarLaunchTask
public ToolBarLaunchTask(ApplicationFrame applicationFrame)
- Creates the
ToolBarLaunchTask for the given
ApplicationFrame.
- Parameters:
applicationFrame - Application context for this LaunchTask.
postCreate
public void postCreate(java.lang.Object object)
- Receives the ToolBar filled by this LaunchTask. Remove items from it,
when not needed.
- Specified by:
postCreate in class AbstractLaunchTask
- Parameters:
object - - See Also:
AbstractLaunchTask.postCreate(Object)
run
public final 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- See Also:
LaunchTask.run()
Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.