GoGraph
v1.0


gograph.actions.file
Class FileSaveAction

java.lang.Object
  |
  +--javax.swing.AbstractAction
        |
        +--gograph.actions.file.FileSaveAction
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable

public class FileSaveAction
extends javax.swing.AbstractAction

Save current editing graph in last saved or opened file.

See Also:
GoGraph, Serialized Form

Field Summary
protected  GoGraph gograph
          Access back to GoGraph panel.
 
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
FileSaveAction(GoGraph gograph, javax.swing.ImageIcon icon)
          Creates a new instance of FileSaveAction.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Save current editing graph in last saved or opened file.
 
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

gograph

protected GoGraph gograph
Access back to GoGraph panel.

Constructor Detail

FileSaveAction

public FileSaveAction(GoGraph gograph,
                      javax.swing.ImageIcon icon)
Creates a new instance of FileSaveAction.

Parameters:
gograph - Access back to GoGraph panel.
icon - Action icon.
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Save current editing graph in last saved or opened file.

If no current file is set, standard save dialog frame is opened.

Parameters:
e - Evenement source.

GoGraph
v1.0


Copyright (C) 2003 Stewe Frei. All rights reserved.