Cytoscape 2.8.0 API

cytoscape.actions
Class OpenSessionAction

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

public class OpenSessionAction
extends CytoscapeAction

Call the session reader and read everything in the zip archive.

Since:
Cytoscape 2.3
Version:
1.0
Author:
kono
See Also:
CytoscapeSessionReader, Serialized Form

Field Summary
protected static CyLogger logger
           
static String SESSION_EXT
           
protected  CyMenus windowMenu
           
 
Fields inherited from class cytoscape.util.CytoscapeAction
acceleratorSet, consoleName, keyCode, keyModifiers, menuIndex, preferredButtonGroup, preferredMenu, useCheckBoxMenuItem
 
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
OpenSessionAction()
          Constructor.
Add a menu item under "File" and set shortcut.
OpenSessionAction(CyMenus windowMenu, boolean label)
          Constructor for the Icon button on the toolbar.
 
Method Summary
 void actionPerformed(ActionEvent e)
          Clear current session and open the cys file.
 
Methods inherited from class cytoscape.util.CytoscapeAction
actionHelp, clone, completions, enableForNetwork, enableForNetworkAndView, getActionList, getKeyCode, getKeyModifiers, getName, getPreferredButtonGroup, getPreferredMenu, getPrefferedIndex, initialize, isAccelerated, isInMenuBar, isInToolBar, menuCanceled, menuDeselected, menuSelected, setAcceleratorCombo, setName, setPreferredButtonGroup, setPreferredIndex, setPreferredMenu, takeArgs
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, 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

windowMenu

protected CyMenus windowMenu

logger

protected static CyLogger logger

SESSION_EXT

public static final String SESSION_EXT
See Also:
Constant Field Values
Constructor Detail

OpenSessionAction

public OpenSessionAction()
Constructor.
Add a menu item under "File" and set shortcut.


OpenSessionAction

public OpenSessionAction(CyMenus windowMenu,
                         boolean label)
Constructor for the Icon button on the toolbar.

Parameters:
windowMenu -
label -
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
Clear current session and open the cys file.

Specified by:
actionPerformed in interface ActionListener
Specified by:
actionPerformed in class CytoscapeAction
Parameters:
e - DOCUMENT ME!

Cytoscape 2.8.0 API

Copyright 2010 Cytoscape Consortium. All rights reserved.