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

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

public class ToggleMergeElementTypesCommand
extends BaseCommand
implements ToggleCommand

Command to toggle the visibility of the root node in the AttributeTree, which described the type of Attributable. Hiding it will merge the subtrees.

Version:
$Id: ToggleMergeElementTypesCommand.java,v 1.3 2005/04/28 10:40:52 KevinCVS Exp $
Author:
BurkhardWick

Constructor Summary
ToggleMergeElementTypesCommand(AttributeEditor editor, java.lang.String id)
          Creates a new ToggleMergeElementTypesCommand.
 
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

ToggleMergeElementTypesCommand

public ToggleMergeElementTypesCommand(AttributeEditor editor,
                                      java.lang.String id)
Creates a new ToggleMergeElementTypesCommand.

Parameters:
editor - the enclosing AttributeEditor instance.
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.