com.tensegrity.gui.swing.control.attributetree.command
Class ToggleCategoriesCommand

java.lang.Object
  extended bycom.tensegrity.generic.command.BaseCommand
      extended bycom.tensegrity.gui.swing.control.attributetree.command.ToggleCategoriesCommand
All Implemented Interfaces:
Command, ToggleCommand

public class ToggleCategoriesCommand
extends BaseCommand
implements ToggleCommand

Command to toggle the visibility of categories in an AttributeTree.

Version:
$Id: ToggleCategoriesCommand.java,v 1.5 2005/04/28 10:28:08 KevinCVS Exp $
Author:
BurkhardWick

Constructor Summary
ToggleCategoriesCommand(AttributeEditor editor, java.lang.String id)
          Constructor
 
Method Summary
 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.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

ToggleCategoriesCommand

public ToggleCategoriesCommand(AttributeEditor editor,
                               java.lang.String id)
Constructor

Parameters:
editor - The editor this command belongs to
id - The id of this command for later retrieval
Method Detail

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

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
Parameters:
args - optional parameter for this command


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