jcreek.cke.command
Class ExportAction
java.lang.Object
javax.swing.AbstractAction
jcreek.cke.command.CreekAction
jcreek.cke.command.ExportAction
- All Implemented Interfaces:
- javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.beans.PropertyChangeListener, java.io.Serializable
- public class ExportAction
- extends CreekAction
- implements java.beans.PropertyChangeListener
Implements the open file action used to open an existing
graph document. This class also defines a file filter used
with the file selector to limit the user to choosing only
supported graph files.
- Version:
- Author:
- See Also:
- Serialized Form
Fields inherited from class javax.swing.AbstractAction |
changeSupport, enabled |
Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
Constructor Summary |
ExportAction()
Creates a new OpenAction object with the default action
command string of "open". |
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 |
ExportAction
public ExportAction()
- Creates a new OpenAction object with the default action
command string of "open".
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent event)
- Performs the open action. This presents the user with
a file selector and opens the selected file as a graph
document. Causes a new window to be opened.
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
- Parameters:
event
- action event
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent e)
- Specified by:
propertyChange
in interface java.beans.PropertyChangeListener
saveFile
protected boolean saveFile(Visualizer win,
java.lang.String[] ext,
java.lang.String extlabel)
exportView
protected boolean exportView(Visualizer win,
java.io.File saveFile)
Created at IDI, NTNU by the Artificial Intelligence and Learning group