com.tensegrity.skeleton.commands
Class ToggleLeftColumnCommand

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

public class ToggleLeftColumnCommand
extends CommonBaseCommand
implements ToggleCommand

This Command shows or hides the left part of the ApplicationFrame.

Note that applications based upon the skeleton should extend SwingFrameLayoutController in order to use the ToggleLeftColumnCommand.

Version:
$Id: ToggleLeftColumnCommand.java,v 1.6 2005/04/14 14:55:36 KevinCVS Exp $
Author:
S�bastien Guyon

Constructor Summary
ToggleLeftColumnCommand(ApplicationFrame applicationFrame, java.lang.String command)
          This is the ToggleLeftColumnCommand's default constructor.
 
Method Summary
protected  void doPerform()
           Internally calls SwingFrameLayoutController.toggleRightColumn().
 boolean isActive()
          Returns true, if the toggle command is currently selected (activated).
 void perform(java.lang.Object args)
          This method will specify the functionality the command offers.
 
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
 
Methods inherited from interface com.tensegrity.generic.command.Command
getDescription, getId, getPerformDescription, isEnabled, setEnabled
 

Constructor Detail

ToggleLeftColumnCommand

public ToggleLeftColumnCommand(ApplicationFrame applicationFrame,
                               java.lang.String command)
This is the ToggleLeftColumnCommand's default constructor.

Parameters:
applicationFrame - this is the ApplicationFrame instance which is herein used to access various components of the application (command registry, layout controller, ... ).
command - this is a unique identifier for the command.
Method Detail

perform

public void perform(java.lang.Object args)
Description copied from interface: Command
This method will specify the functionality the command offers. Optionally a parameter can be specified.

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

doPerform

protected void doPerform()

Internally calls SwingFrameLayoutController.toggleRightColumn().


isActive

public boolean isActive()
Description copied from interface: ToggleCommand
Returns true, if the toggle command is currently selected (activated).

Specified by:
isActive in interface ToggleCommand
Returns:
The status of the toggle command
See Also:
ToggleCommand.isActive()


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