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

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

public class SetSortModeCommand
extends BaseCommand
implements ChoiceCommand

Command that sets the sort mode of a SwingAttributeTree to the value specified in the construcor.

Version:
$Id: SetSortModeCommand.java,v 1.3 2004/03/25 12:46:09 BurkhardWick Exp $
Author:
BurkhardWick

Constructor Summary
SetSortModeCommand(int sortMode, AttributeEditor editor, CommandRegistry commandregistry, java.lang.String id)
          Constructor.
 
Method Summary
 boolean isSelected()
          Returns true, if the choice 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

SetSortModeCommand

public SetSortModeCommand(int sortMode,
                          AttributeEditor editor,
                          CommandRegistry commandregistry,
                          java.lang.String id)
Constructor.

Parameters:
sortMode - The sortmode this command will apply to the SwingAttributeTree whenever it is performed
editor - The SwingAttributeTable this command should apply to
commandregistry - The command registry to register this command to (might be null)
id - The id of this 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
Parameters:
args - optional parameter for this command

isSelected

public boolean isSelected()
Description copied from interface: ChoiceCommand
Returns true, if the choice command is currently selected (activated).

Specified by:
isSelected in interface ChoiceCommand
Returns:
The status of the choice command


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