jimm.datavision.gui.cmd
Class FormatCommand
java.lang.Object
jimm.datavision.gui.cmd.CommandAdapter
jimm.datavision.gui.cmd.FormatCommand
- All Implemented Interfaces:
- Command, Nameable
public class FormatCommand
- extends CommandAdapter
A command for changing a field's format and border.
- Author:
- Jim Menard, jimm@io.com
Method Summary |
void |
perform()
Performs the command. |
void |
undo()
Undoes the command. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
field
protected Field field
origFormat
protected Format origFormat
newFormat
protected Format newFormat
origBorder
protected Border origBorder
newBorder
protected Border newBorder
FormatCommand
public FormatCommand(Field f,
Format format,
Border border)
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