com.tensegrity.skeleton.swing.launch
Class LayoutToolsLaunchTask

java.lang.Object
  extended bycom.tensegrity.gui.launch.LaunchTask
      extended bycom.tensegrity.skeleton.swing.launch.AbstractLaunchTask
          extended bycom.tensegrity.skeleton.swing.launch.LayoutToolsLaunchTask

public class LayoutToolsLaunchTask
extends AbstractLaunchTask

The LayoutToolsLaunchTask provides the basic functionality to create SlidePanels containing categories of Layouttools.

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

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
LayoutToolsLaunchTask(ApplicationFrame applicationFrame)
          Creates a new LayoutToolsLaunchTask.
 
Method Summary
protected  JPopupMenuSource getPopupMenuSource()
          Returns the popupmenu source that should be used for the top level slide.
protected  ActionRepositoryItem[][] getRepositoryItems()
          This method returns a list of ActionRepositoryItem lists.
protected  java.lang.String[] getSlideTitleIDs()
          This method returns an array of Strings referencing the string resource for the resulting slides of this launchtask.
 void postCreate(java.lang.Object object)
          Receives the newly created topLevel SlidePanel used for the layout tools.
 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

LayoutToolsLaunchTask

public LayoutToolsLaunchTask(ApplicationFrame applicationFrame)
Creates a new LayoutToolsLaunchTask.

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

postCreate

public void postCreate(java.lang.Object object)
Receives the newly created topLevel SlidePanel used for the layout tools.

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

getRepositoryItems

protected ActionRepositoryItem[][] getRepositoryItems()
This method returns a list of ActionRepositoryItem lists. This means, for each row of this matrix there will be a separate slide created based on the id from the slide title array provided by getSlideTitleIDs().

Returns:
a matrix of ActionRepositoryItem instances. Its a matrix to allow you to specify many rows of such items.

getSlideTitleIDs

protected java.lang.String[] getSlideTitleIDs()
This method returns an array of Strings referencing the string resource for the resulting slides of this launchtask. The array is read from 0 to length-1. This means the first entry of this array always contains the id for the slide itself, while the rest are the id's for all subsequent slidepanels.

Returns:
for each row you return in getRepositoryItems() you must specify a title in form of a string. Return the list of titles here.

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

getPopupMenuSource

protected JPopupMenuSource getPopupMenuSource()
Returns the popupmenu source that should be used for the top level slide.

Returns:
the popupmenu source that should be used for the top level slide.


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