com.partnersoft.gadgets
Class CogDeleteObjectsCommand

java.lang.Object
  extended by com.partnersoft.gadgets.CogDeleteObjectsCommand
All Implemented Interfaces:
UndoableCommand

public class CogDeleteObjectsCommand
extends java.lang.Object
implements UndoableCommand

An undoable/redoable command to delete multiple properties in a Cog structure.

Author:
Paul Reavis Copyright 2003 Partner Software, Inc.

Constructor Summary
CogDeleteObjectsCommand(Cog cog, java.util.ArrayList pathsToDelete)
           
 
Method Summary
 void redo()
          Execute the command, saving any state necessary to undo it.
 void undo()
          Undo the command, saving any state necessary to redo it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CogDeleteObjectsCommand

public CogDeleteObjectsCommand(Cog cog,
                               java.util.ArrayList pathsToDelete)
Method Detail

redo

public void redo()
Execute the command, saving any state necessary to undo it.

Specified by:
redo in interface UndoableCommand

undo

public void undo()
Undo the command, saving any state necessary to redo it.

Specified by:
undo in interface UndoableCommand