jimm.datavision.gui.cmd
Class SortEditCommand

java.lang.Object
  extended by jimm.datavision.gui.cmd.CommandAdapter
      extended by jimm.datavision.gui.cmd.SortEditCommand
All Implemented Interfaces:
Command, Nameable

public class SortEditCommand
extends CommandAdapter

A command for changing the sort orders in a Query.

Author:
Jim Menard, jimm@io.com

Field Summary
protected static int DRASTIC_CHANGE
           
protected  java.util.Collection newSortItems
           
protected static int NO_CHANGE
           
protected  java.util.Collection oldSortItems
           
protected static int ONLY_SORTING_CHANGE
           
protected  Query query
           
 
Fields inherited from class jimm.datavision.gui.cmd.CommandAdapter
name
 
Constructor Summary
SortEditCommand(Query query, java.util.Collection sortItems)
           
 
Method Summary
 void perform()
          Performs the command.
protected  void setSorts(java.util.Collection itemList)
           
 void undo()
          Undoes the command.
 
Methods inherited from class jimm.datavision.gui.cmd.CommandAdapter
getName, redo, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_CHANGE

protected static final int NO_CHANGE
See Also:
Constant Field Values

ONLY_SORTING_CHANGE

protected static final int ONLY_SORTING_CHANGE
See Also:
Constant Field Values

DRASTIC_CHANGE

protected static final int DRASTIC_CHANGE
See Also:
Constant Field Values

query

protected Query query

newSortItems

protected java.util.Collection newSortItems

oldSortItems

protected java.util.Collection oldSortItems
Constructor Detail

SortEditCommand

public SortEditCommand(Query query,
                       java.util.Collection sortItems)
Method Detail

perform

public void perform()
Description copied from class: CommandAdapter
Performs the command. The default implementation does nothing.

Specified by:
perform in interface Command
Overrides:
perform in class CommandAdapter

undo

public void undo()
Description copied from class: CommandAdapter
Undoes the command. The default implementation does nothing.

Specified by:
undo in interface Command
Overrides:
undo in class CommandAdapter

setSorts

protected void setSorts(java.util.Collection itemList)