com.tensegrity.skeleton.swt.launch
Class SwtRepositoryLaunchTask

java.lang.Object
  extended bycom.tensegrity.gui.launch.LaunchTask
      extended bycom.tensegrity.skeleton.swing.launch.AbstractLaunchTask
          extended bycom.tensegrity.skeleton.swt.launch.SwtRepositoryLaunchTask
All Implemented Interfaces:
SlidePanelListener

public class SwtRepositoryLaunchTask
extends AbstractLaunchTask
implements SlidePanelListener

This LaunchTask initializes a default repository Container for a SWT-based application. Repository items are usually associated to shapes which can be added to the graphical editor by simple drag-and-drop operation.

Version:
$Id: SwtRepositoryLaunchTask.java,v 1.18 2005/11/04 15:37:45 ArndHouben Exp $
Author:
S�bastien Guyon
See Also:
SwtRepositoryContainer, SwtSlidePanelContainer

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
SwtRepositoryLaunchTask(SwtApplicationFrame applicationFrame)
          Creates the SwtRepositoryLaunchTask which initializes the repository of items for a given SwtApplicationFrame.
 
Method Summary
 void panelClosed(SlidePanelEvent event)
          Notifies that the slide panel has been closed, i.e. it was removed from the sreen.
 void panelCollapsed(SlidePanelEvent event)
          Notifies that a slide panel has been collapsed, i.e. its content is not visible anymore.
 void panelExpanded(SlidePanelEvent event)
          Notifies that a slide panel has been expanded, i.e. its content is visible.
 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 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

SwtRepositoryLaunchTask

public SwtRepositoryLaunchTask(SwtApplicationFrame applicationFrame)
Creates the SwtRepositoryLaunchTask which initializes the repository of items for a given SwtApplicationFrame.

Parameters:
applicationFrame - Application context for this LaunchTask.
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)
This method is invoked once the run() method is about to return. The parameter is the SwtRepositoryContainer initialized by this launch task.

Specified by:
postCreate in class AbstractLaunchTask
Parameters:
object - the SwtRepositoryContainer initialized by this launch task.
See Also:
AbstractLaunchTask.postCreate(Object)

panelCollapsed

public void panelCollapsed(SlidePanelEvent event)
Description copied from interface: SlidePanelListener
Notifies that a slide panel has been collapsed, i.e. its content is not visible anymore. Usually this is a good place for a parent widget to relayout and/or resize

Specified by:
panelCollapsed in interface SlidePanelListener
Parameters:
event - an event object with detailed information

panelExpanded

public void panelExpanded(SlidePanelEvent event)
Description copied from interface: SlidePanelListener
Notifies that a slide panel has been expanded, i.e. its content is visible. Usually this is a good place for a parent widget to relayout and/or resize

Specified by:
panelExpanded in interface SlidePanelListener
Parameters:
event - an event object with detailed information

panelClosed

public void panelClosed(SlidePanelEvent event)
Description copied from interface: SlidePanelListener
Notifies that the slide panel has been closed, i.e. it was removed from the sreen. Usually this is a good place for a parent widget to relayout and/or resize

Specified by:
panelClosed in interface SlidePanelListener
Parameters:
event - an event object with detailed information


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