com.tensegrity.skeleton.swt.launch
Class SwtToolBarLaunchTask
java.lang.Object
com.tensegrity.gui.launch.LaunchTask
com.tensegrity.skeleton.swing.launch.AbstractLaunchTask
com.tensegrity.skeleton.swt.launch.SwtToolBarLaunchTask
- public class SwtToolBarLaunchTask
- extends AbstractLaunchTask
Fills the default SwtToolBar of an
ApplicationFrame with the
standard buttons.
The default SwtToolBar is the bar at
index 0 of the ToolBar[] array returned by
ApplicationFrame.getToolBars().
Subclasses should override the postCreate(Object) method in order
to customize the toolbar.
- Version:
- $Id: SwtToolBarLaunchTask.java,v 1.19 2005/09/15 14:38:46 SebastienGuyon Exp $
- Author:
- S�bastien Guyon
|
Method Summary |
void |
postCreate(java.lang.Object object)
This method is invoked once the run() method is about to return.
|
int |
run()
The run method of this launch task. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SwtToolBarLaunchTask
public SwtToolBarLaunchTask(SwtApplicationFrame applicationFrame)
- Constructs a new
SwtToolBarLaunchTask which initializes the
application's toolbar.
- Parameters:
applicationFrame - Application context for this LaunchTask.
postCreate
public void postCreate(java.lang.Object object)
- This method is invoked once the
run() method is about to return.
The parameter is the SwtToolBar initialized by this launch task.
- Specified by:
postCreate in class AbstractLaunchTask
- Parameters:
object - the SwtToolBar initialized by this launch task.- See Also:
AbstractLaunchTask.postCreate(Object)
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
Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.