Cytoscape 2.6.2 (c) 2006,2007 ISB, MSKCC, UCSD

cytoscape.util.undo
Class RedoAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by cytoscape.util.CytoscapeAction
          extended by cytoscape.util.undo.RedoAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action, MenuListener

public class RedoAction
extends CytoscapeAction

An action that calls redo for the most recent edit in the undoable edit stack.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
RedoAction()
          Constructs the action.
 
Method Summary
 void actionPerformed(ActionEvent e)
          Tries to run redo() on the top edit of the edit stack.
 void menuDeselected(MenuEvent e)
          Called when a menu is hidden once you click on a menu item or elsewhere.
 void menuSelected(MenuEvent e)
          Called when the menu that contains this action is clicked on.
 
Methods inherited from class cytoscape.util.CytoscapeAction
actionHelp, clone, completions, getActionList, getKeyCode, getKeyModifiers, getName, getPreferredButtonGroup, getPreferredMenu, getPrefferedIndex, isAccelerated, isInMenuBar, isInToolBar, menuCanceled, setAcceleratorCombo, setName, setPreferredButtonGroup, setPreferredIndex, setPreferredMenu, takeArgs
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RedoAction

public RedoAction()
Constructs the action.

Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
Tries to run redo() on the top edit of the edit stack.

Specified by:
actionPerformed in interface ActionListener
Specified by:
actionPerformed in class CytoscapeAction
Parameters:
e - The action event that triggers this method call.

menuSelected

public void menuSelected(MenuEvent e)
Called when the menu that contains this action is clicked on.

Specified by:
menuSelected in interface MenuListener
Overrides:
menuSelected in class CytoscapeAction
Parameters:
e - The menu event that triggers this method call.

menuDeselected

public void menuDeselected(MenuEvent e)
Called when a menu is hidden once you click on a menu item or elsewhere. This is a hack to make sure that redo is available via the accelerator keys at all times.

Specified by:
menuDeselected in interface MenuListener
Overrides:
menuDeselected in class CytoscapeAction
Parameters:
e - The menu event that triggers this method call.

www.cytoscape.org