com.tensegrity.skeleton.commands
Class SwitchLanguageCommand

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

public final class SwitchLanguageCommand
extends CommonBaseCommand

This Command switches the application language.

Used to switch the current language of the application.

Version:
$Id: SwitchLanguageCommand.java,v 1.17 2005/10/19 13:30:50 BurkhardWick Exp $
Author:
Gilles Iachelini

Constructor Summary
SwitchLanguageCommand(ApplicationFrame applicationFrame, java.lang.String id, java.util.Locale locale, boolean enabled)
          Creates SwitchLanguageCommand.
 
Method Summary
 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

SwitchLanguageCommand

public SwitchLanguageCommand(ApplicationFrame applicationFrame,
                             java.lang.String id,
                             java.util.Locale locale,
                             boolean enabled)
Creates SwitchLanguageCommand. This command will switch the language specified by the parameter Locale. By passing a boolean you can decide whether this command should be initially en-/disabled.

Parameters:
applicationFrame - Application context for this command.
id - the ID of this command.
locale - the Locale to switch to.
enabled - boolean flag to indicate state.
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)


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