com.tensegrity.gui.swing.control.attributetree.command
Class SetSortModeCommand
java.lang.Object
com.tensegrity.generic.command.BaseCommand
com.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
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 performededitor - The SwingAttributeTable this command should apply tocommandregistry - The command registry to register this command to (might be null)id - The id of this 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
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.