com.partnersoft.gadgets
Class CogSetObjectCommand

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

public class CogSetObjectCommand
extends java.lang.Object
implements UndoableCommand

An undoable/redoable command to set a property in a Cog structure.

Author:
Paul Reavis Copyright 2003 Partner Software, Inc.

Constructor Summary
CogSetObjectCommand(Cog cog, java.lang.String path, java.lang.Object newValue)
           
 
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

CogSetObjectCommand

public CogSetObjectCommand(Cog cog,
                           java.lang.String path,
                           java.lang.Object newValue)
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