org.opensourcephysics.tools
Class Launcher.LinkEdit

java.lang.Object
  extended byjavax.swing.undo.AbstractUndoableEdit
      extended byorg.opensourcephysics.tools.Launcher.LinkEdit
All Implemented Interfaces:
java.io.Serializable, javax.swing.undo.UndoableEdit
Enclosing class:
Launcher

protected class Launcher.LinkEdit
extends javax.swing.undo.AbstractUndoableEdit

A class to undo/redo a link, open or new tabset action.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.undo.AbstractUndoableEdit
RedoName, UndoName
 
Constructor Summary
Launcher.LinkEdit(Launcher.LinkEdit edit)
          Copy constructor.
Launcher.LinkEdit(java.lang.String[] arguments)
          Constructor.
 
Method Summary
 java.lang.String getPresentationName()
           
 void redo()
           
 void undo()
           
 
Methods inherited from class javax.swing.undo.AbstractUndoableEdit
addEdit, canRedo, canUndo, die, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Launcher.LinkEdit

public Launcher.LinkEdit(java.lang.String[] arguments)
Constructor.

Parameters:
arguments - [0] is new file name, [1] is new tab and node name

Launcher.LinkEdit

public Launcher.LinkEdit(Launcher.LinkEdit edit)
Copy constructor.

Parameters:
edit - the LinkEdit to copy
Method Detail

undo

public void undo()
          throws javax.swing.undo.CannotUndoException
Throws:
javax.swing.undo.CannotUndoException

redo

public void redo()
          throws javax.swing.undo.CannotUndoException
Throws:
javax.swing.undo.CannotUndoException

getPresentationName

public java.lang.String getPresentationName()