com.tensegrity.gui.swt.control
Class SwtSimpleLauncher

java.lang.Object
  extended bycom.tensegrity.gui.swt.control.SwtSimpleLauncher
All Implemented Interfaces:
ApplicationLauncher

public class SwtSimpleLauncher
extends java.lang.Object
implements ApplicationLauncher

This interface is typically implemented by a class that displays a minimum amount of info and executes several launch tasks. After it is done it will return from its main launch() method.

Version:
$Id: SwtSimpleLauncher.java,v 1.3 2005/07/22 15:12:18 SebastienGuyon Exp $
Author:
S�bastien Guyon

Constructor Summary
SwtSimpleLauncher()
          Constructs a new swt application launcher.
 
Method Summary
 boolean launch()
          Launches all of the registered tasks.
 void registerLaunchTask(LaunchTask launchtask)
          Adds a launchtask to the launcher.
 void unregisterLaunchTask(LaunchTask launchtask)
          Removes a launchtask from the launcher.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwtSimpleLauncher

public SwtSimpleLauncher()
Constructs a new swt application launcher.

Method Detail

registerLaunchTask

public void registerLaunchTask(LaunchTask launchtask)
Adds a launchtask to the launcher.

Specified by:
registerLaunchTask in interface ApplicationLauncher
Parameters:
launchtask - the task to register with the launcher.

unregisterLaunchTask

public void unregisterLaunchTask(LaunchTask launchtask)
Removes a launchtask from the launcher.

Specified by:
unregisterLaunchTask in interface ApplicationLauncher
Parameters:
launchtask - the task to unregister from the launcher.

launch

public boolean launch()
Description copied from interface: ApplicationLauncher
Launches all of the registered tasks.

Specified by:
launch in interface ApplicationLauncher
Returns:
true if the launching succeeded, false indicates a fatal error.


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