com.tensegrity.skeleton.swt.commands
Class SwtSwitchLanguageCommand

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

public final class SwtSwitchLanguageCommand
extends CommonBaseCommand

Switches the language used within a SWT application.

Version:
$Id: SwtSwitchLanguageCommand.java,v 1.3 2005/08/09 08:17:42 BurkhardWick Exp $
Author:
Gilles Iachelini, S�bastien Guyon

Constructor Summary
SwtSwitchLanguageCommand(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

SwtSwitchLanguageCommand

public SwtSwitchLanguageCommand(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.