gov.nih.nlm.mms
Class InputStreamUndoHandler

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

public class InputStreamUndoHandler
extends Object
implements UndoHandler

Handles undo operation for a change in input handler.


Constructor Summary
InputStreamUndoHandler(MetamorphoSysGUI gui, JTextField field, JPanel content_panel)
          Instantiates an InputStreamUndoHandler.
 
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

InputStreamUndoHandler

public InputStreamUndoHandler(MetamorphoSysGUI gui,
                              JTextField field,
                              JPanel content_panel)
Instantiates an InputStreamUndoHandler.

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 input stream
o2 - the new input stream


Copyright ©2005