gov.nih.nlm.mms
Class OutputStreamUndoHandler

java.lang.Object
  extended bygov.nih.nlm.mms.OutputStreamUndoHandler
All Implemented Interfaces:
UndoHandler

public class OutputStreamUndoHandler
extends Object
implements UndoHandler

Handles undo operation for a change in output handler.


Constructor Summary
OutputStreamUndoHandler(MetamorphoSysGUI gui, JTextField field, JPanel content_panel)
          Outstantiates an OutputStreamUndoHandler.
 
Method Summary
 String getTitle()
          Returns the title for the undo menu.
 void undo(Object o1, Object o2)
          Performs the undo operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutputStreamUndoHandler

public OutputStreamUndoHandler(MetamorphoSysGUI gui,
                               JTextField field,
                               JPanel content_panel)
Outstantiates an OutputStreamUndoHandler.

Parameters:
gui - the MetamorphoSysGUI
field - the text field to update
content_panel - the panel to update
Method Detail

getTitle

public String getTitle()
Returns the title for the undo menu.

Specified by:
getTitle in interface UndoHandler
Returns:
the title for the undo menu

undo

public void undo(Object o1,
                 Object o2)
Performs the undo operation.

Specified by:
undo in interface UndoHandler
Parameters:
o1 - the old output stream
o2 - the new output stream


Copyright ©2005