com.tensegrity.skeleton.commands
Class CommonBaseCommand

java.lang.Object
  extended bycom.tensegrity.generic.command.BaseCommand
      extended bycom.tensegrity.skeleton.commands.CommonBaseCommand
All Implemented Interfaces:
Command
Direct Known Subclasses:
AboutCommand, DebugApplicationCommand, DocumentCommand, EditSlidesVisibilityCommand, FloatCommand, com.tensegrity.skeleton.commands.HelpBaseCommand, LoadStylesCommand, LookAndFeelCommand, MDIStyleCommand, OpenElementsCommand, OpenLayoutsCommand, PreferencesCommand, QuitCommand, StyleDialogCommand, SwitchLanguageCommand, SwtCommonBaseCommand, SwtPreferencesCommand, SwtStyleDialogCommand, SwtSwitchLanguageCommand, ToggleLeftColumnCommand, ToggleRightColumnCommand

public class CommonBaseCommand
extends BaseCommand

This BaseCommand derived class is responsible for setting the StatusBar message with the appropriate text.

Version:
$Id: CommonBaseCommand.java,v 1.14 2006/04/12 16:06:58 MichaelKegel Exp $
Author:
MichaelKegel, Gilles Iachelini, Stepan RUtz

Constructor Summary
CommonBaseCommand(ApplicationFrame applicationFrame, java.lang.String command)
          Constructor specifying the ApplicationFrame to use and a unique id for this Command.
 
Method Summary
 ApplicationFrame getApplicationFrame()
          Returns an instance of ApplicationFrame.
 java.lang.String getTitle()
          If the internal id is not null, this method returns a String holding the id from UIManager, otherwise the perform description of the superclass is returned.
 void perform(java.lang.Object args)
          Updates the StatusBar with this commands title string.
 
Methods inherited from class com.tensegrity.generic.command.BaseCommand
getDescription, getId, getPerformDescription, isEnabled, setEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommonBaseCommand

public CommonBaseCommand(ApplicationFrame applicationFrame,
                         java.lang.String command)
Constructor specifying the ApplicationFrame to use and a unique id for this Command.

Parameters:
applicationFrame - Application context for this command.
command - the ID of this command.
Method Detail

perform

public void perform(java.lang.Object args)
Updates the StatusBar with this commands title string. (non-Javadoc)

Parameters:
args - optional parameter for this command
See Also:
Command.perform(java.lang.Object)

getTitle

public java.lang.String getTitle()
If the internal id is not null, this method returns a String holding the id from UIManager, otherwise the perform description of the superclass is returned.

Returns:
the unique id of this command.
See Also:
BaseCommand.getPerformDescription()

getApplicationFrame

public ApplicationFrame getApplicationFrame()
Returns an instance of ApplicationFrame. This ApplicationFrame represents the enclosing application of each CommonBaseCommand.

Returns:
the instance of the currently enclosing ApplicationFrame.


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