jimm.datavision.gui.cmd
Class SortEditCommand
java.lang.Object
jimm.datavision.gui.cmd.CommandAdapter
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
|
Method Summary |
void |
perform()
Performs the command. |
protected void |
setSorts(java.util.Collection itemList)
|
void |
undo()
Undoes the command. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
SortEditCommand
public SortEditCommand(Query query,
java.util.Collection sortItems)
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)