com.tensegrity.skeleton.commands
Class PreferencesCommand

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

public class PreferencesCommand
extends CommonBaseCommand

This Command opens a PreferenceDialog to allow users to modify all application configuration settings.

Version:
$Id: PreferencesCommand.java,v 1.15 2005/12/05 09:30:55 BurkhardWick Exp $
Author:
Andreas Ebbert

Constructor Summary
PreferencesCommand(ApplicationFrame applicationFrame, java.lang.String command, boolean enabled)
          Constructor specifying the ApplicationFrame, a name for this Command and a flag indicating, whether the preferences are enabled.
 
Method Summary
 PreferenceDialog getDialog()
          Returns the dialog for the preferences.
 void perform(java.lang.Object args)
          Updates the StatusBar with this commands title string.
 
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

PreferencesCommand

public PreferencesCommand(ApplicationFrame applicationFrame,
                          java.lang.String command,
                          boolean enabled)
Constructor specifying the ApplicationFrame, a name for this Command and a flag indicating, whether the preferences are enabled.

Parameters:
applicationFrame - the ApplicationFrame.
command - a name for this Command.
enabled - indicating whether preferences are enabled.
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)

getDialog

public PreferenceDialog getDialog()
Returns the dialog for the preferences.

Returns:
the dialog for the preferences.


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