NWNDialogEditorInterface
Class MainWindow.EditWindow.FieldChangeUndo

java.lang.Object
  |
  +--NWNDialogEditorInterface.MainWindow.EditWindow.FieldChangeUndo
All Implemented Interfaces:
MainWindow.UndoRedo
Enclosing class:
MainWindow.EditWindow

protected class MainWindow.EditWindow.FieldChangeUndo
extends Object
implements MainWindow.UndoRedo

16 juil. 2003

Author:
Alexandre Brunel This class handles the undo/redo.

Constructor Summary
MainWindow.EditWindow.FieldChangeUndo(MainWindow.EditWindow.DialogTreeNode _node, String _fieldLabel, Object _oldValue, JComponent _viewComponent)
          Constructs a FieldChangeUndo object.
 
Method Summary
 void redo()
          The operation is restored.
 String toString()
           
 void undo()
          The operation is canceled.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MainWindow.EditWindow.FieldChangeUndo

public MainWindow.EditWindow.FieldChangeUndo(MainWindow.EditWindow.DialogTreeNode _node,
                                             String _fieldLabel,
                                             Object _oldValue,
                                             JComponent _viewComponent)
Constructs a FieldChangeUndo object.

Parameters:
_node - The node containing the field.
_fieldLabel - The label of the field.
_oldValue - The old value of the field.
Method Detail

redo

public void redo()
Description copied from interface: MainWindow.UndoRedo
The operation is restored. This method is to be used when the object is part of a redo stack.

Specified by:
redo in interface MainWindow.UndoRedo

toString

public String toString()
Overrides:
toString in class Object

undo

public void undo()
Description copied from interface: MainWindow.UndoRedo
The operation is canceled. This method is to be used when the object is part of an undo stack.

Specified by:
undo in interface MainWindow.UndoRedo