jimm.datavision.gui.cmd
Class FPDeleteCommand

java.lang.Object
  extended by jimm.datavision.gui.cmd.CommandAdapter
      extended by jimm.datavision.gui.cmd.FPDeleteCommand
All Implemented Interfaces:
Command, Nameable
Direct Known Subclasses:
FPCutCommand

public class FPDeleteCommand
extends CommandAdapter

Deletes something from the field picker tree.

Author:
Jim Menard, jimm@io.com

Field Summary
protected  Designer designer
           
protected  FPLeafInfo info
           
protected  javax.swing.tree.DefaultMutableTreeNode leafNode
           
protected  javax.swing.tree.MutableTreeNode parentNode
           
protected  Report report
           
protected  FieldPickerTree tree
           
 
Fields inherited from class jimm.datavision.gui.cmd.CommandAdapter
name
 
Constructor Summary
  FPDeleteCommand(Report report, Designer designer, FieldPickerTree tree, javax.swing.tree.DefaultMutableTreeNode node)
          Constructor.
protected FPDeleteCommand(Report report, Designer designer, FieldPickerTree tree, javax.swing.tree.DefaultMutableTreeNode node, java.lang.String name)
          The delegated constructor.
 
Method Summary
 void perform()
          Performs the command.
 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

report

protected Report report

designer

protected Designer designer

tree

protected FieldPickerTree tree

leafNode

protected javax.swing.tree.DefaultMutableTreeNode leafNode

parentNode

protected javax.swing.tree.MutableTreeNode parentNode

info

protected FPLeafInfo info
Constructor Detail

FPDeleteCommand

public FPDeleteCommand(Report report,
                       Designer designer,
                       FieldPickerTree tree,
                       javax.swing.tree.DefaultMutableTreeNode node)
Constructor.


FPDeleteCommand

protected FPDeleteCommand(Report report,
                          Designer designer,
                          FieldPickerTree tree,
                          javax.swing.tree.DefaultMutableTreeNode node,
                          java.lang.String name)
The delegated constructor.

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