com.tensegrity.skeleton.commands
Class ToggleRightColumnCommand

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

public class ToggleRightColumnCommand
extends CommonBaseCommand
implements ToggleCommand

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

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

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

Constructor Summary
ToggleRightColumnCommand(ApplicationFrame applicationFrame, java.lang.String command)
          This is the ToggleRightColumnCommand'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)
          Internally calls super.perform(args) then doPerform() and finally does application wide status updates.
 
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

ToggleRightColumnCommand

public ToggleRightColumnCommand(ApplicationFrame applicationFrame,
                                java.lang.String command)
This is the ToggleRightColumnCommand'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)
Internally calls super.perform(args) then doPerform() and finally does application wide status updates.

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.