com.tensegrity.skeleton.commands
Class AboutCommand

java.lang.Object
  extended bycom.tensegrity.generic.command.BaseCommand
      extended bycom.tensegrity.skeleton.commands.CommonBaseCommand
          extended bycom.tensegrity.skeleton.commands.AboutCommand
All Implemented Interfaces:
Command

public final class AboutCommand
extends CommonBaseCommand

Opens an instance of class AboutDialog.

Version:
$Id: AboutCommand.java,v 1.20 2005/04/14 12:30:41 KevinCVS Exp $
Author:
GillesIachelini

Constructor Summary
AboutCommand(ApplicationFrame applicationFrame, java.lang.String command)
          Creates a new AboutCommand.
 
Method Summary
 void perform(java.lang.Object args)
          Updates the StatusBar with this commands title string.
 void setDescriptionKey(java.lang.String descriptionKey)
          Sets a custom description to display in the base dialog description area.
 void setImageResource(java.lang.Class resourceClass, java.lang.String imageUrl)
          Set a custom image to be displayed in the about box of your application.
 void setTitleKey(java.lang.String titleKey)
          Sets a custom title to display in the base dialog.
 
Methods inherited from class com.tensegrity.skeleton.commands.CommonBaseCommand
getApplicationFrame, getTitle
 
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

AboutCommand

public AboutCommand(ApplicationFrame applicationFrame,
                    java.lang.String command)
Creates a new AboutCommand.

Parameters:
applicationFrame - Application context for this command.
command - a GUI Resource id for the command.
Method Detail

perform

public void perform(java.lang.Object args)
Description copied from class: CommonBaseCommand
Updates the StatusBar with this commands title string. (non-Javadoc)

Specified by:
perform in interface Command
Overrides:
perform in class CommonBaseCommand
See Also:
Command.perform(java.lang.Object)

setImageResource

public final void setImageResource(java.lang.Class resourceClass,
                                   java.lang.String imageUrl)
Set a custom image to be displayed in the about box of your application.

Parameters:
resourceClass - the recourcClass the imageUrl is relative to.
imageUrl - the location of your image.

setTitleKey

public final void setTitleKey(java.lang.String titleKey)
Sets a custom title to display in the base dialog.

Parameters:
titleKey - the ui-manager key for the title to show.

setDescriptionKey

public final void setDescriptionKey(java.lang.String descriptionKey)
Sets a custom description to display in the base dialog description area.

Parameters:
descriptionKey - the ui-manager key for the description to show.


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