info.aduna.linkmap.action
Class OpenGraphAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by info.aduna.linkmap.action.LinkMapAction
          extended by info.aduna.linkmap.action.OpenGraphAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action

public class OpenGraphAction
extends LinkMapAction

OpenGraphAction is a LinkMapAction that offers the user the ability to open a Graph XML file that will be displayed in the LinkMap.

See Also:
Serialized Form

Field Summary
 
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
OpenGraphAction(LinkMap map, Component parent)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
          Creates the JFileChooser if it not already exist and makes it visible.
 void open(File file)
          Loads the Graph contained in the specified File and deals with any Exceptions that may occur.
 
Methods inherited from class info.aduna.linkmap.action.LinkMapAction
getMap, getParent
 
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
 

Constructor Detail

OpenGraphAction

public OpenGraphAction(LinkMap map,
                       Component parent)
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
Creates the JFileChooser if it not already exist and makes it visible.


open

public void open(File file)
Loads the Graph contained in the specified File and deals with any Exceptions that may occur.



Copyright © 1997-2008 Aduna. All Rights Reserved.