Home / Development / Documentation / 2.0.44 / UndoRedoToAction
TreeGraph 2
 


info.bioinfweb.treegraph.gui.actions.edit
Class UndoRedoToAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by info.bioinfweb.treegraph.gui.actions.TreeGraphAction
          extended by info.bioinfweb.treegraph.gui.actions.DocumentAction
              extended by info.bioinfweb.treegraph.gui.actions.edit.UndoRedoToAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
Direct Known Subclasses:
RedoToAction, UndoToAction

public abstract class UndoRedoToAction
extends DocumentAction

Subclass of UndoToAction and RedoToAction which implements common behavior.

Since:
2.0.23
Author:
Ben Stöver
See Also:
Serialized Form

Field Summary
protected  UndoableEdit edit
           
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
UndoRedoToAction(MainFrame mainFrame, UndoableEdit edit)
           
 
Method Summary
 void setEnabled(Document document, TreeSelection selection, NodeBranchDataAdapter tableAdapter)
           
 
Methods inherited from class info.bioinfweb.treegraph.gui.actions.DocumentAction
actionPerformed, getMainFrame, onActionPerformed, oneElementSelected
 
Methods inherited from class info.bioinfweb.treegraph.gui.actions.TreeGraphAction
loadSymbols
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

edit

protected UndoableEdit edit
Constructor Detail

UndoRedoToAction

public UndoRedoToAction(MainFrame mainFrame,
                        UndoableEdit edit)
Method Detail

setEnabled

public void setEnabled(Document document,
                       TreeSelection selection,
                       NodeBranchDataAdapter tableAdapter)
Specified by:
setEnabled in class DocumentAction