org.jgraph.pad.actions
Class FileSaveTiki

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byorg.jgraph.pad.actions.AbstractActionDefault
          extended byorg.jgraph.pad.actions.FileExit
              extended byorg.jgraph.pad.actions.FileSaveTiki
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable, TranslatorConstants
Direct Known Subclasses:
FileSaveTikiAndExit

public class FileSaveTiki
extends FileExit

Action opens a dialog to select the file. After that the action saves the current graph to the selected file.

See Also:
Serialized Form

Field Summary
protected  boolean exitOnSave
           
 
Fields inherited from class org.jgraph.pad.actions.AbstractActionDefault
graphpad
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface org.jgraph.pad.resources.TranslatorConstants
PREFIX_COMPONENT, PREFIX_MESSAGE_ERROR, PREFIX_MESSAGE_INFORMATION, PREFIX_MESSAGE_WARING, SUFFIX_ACCELERATOR, SUFFIX_ACTION, SUFFIX_ICON, SUFFIX_IMAGE, SUFFIX_LABEL, SUFFIX_MENU, SUFFIX_MNEMONIC, SUFFIX_TEXT, SUFFIX_TITLE, SUFFIX_TOOL_TIP_TEXT
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
FileSaveTiki(GPGraphpad graphpad)
          Constructor for FileSave.
FileSaveTiki(GPGraphpad graphpad, boolean exitOnSave)
          Constructor for FileSave.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Shows a file chooser if the filename from the document is null.
 void update()
          empty implementation for this typ of action
 
Methods inherited from class org.jgraph.pad.actions.AbstractActionDefault
getCurrentDocument, getCurrentGraph, getCurrentGraphLayoutCache, getGraphpad, getMenuComponent, getMenuComponents, getName, getPresentationText, getToolComponent, getToolComponents, setFontNameForSelection, setFontSizeForSelection, setFontStyleForSelection, setGraphpad, setSelectionAttributes
 
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

exitOnSave

protected boolean exitOnSave
Constructor Detail

FileSaveTiki

public FileSaveTiki(GPGraphpad graphpad)
Constructor for FileSave.

Parameters:
graphpad -

FileSaveTiki

public FileSaveTiki(GPGraphpad graphpad,
                    boolean exitOnSave)
Constructor for FileSave.

Parameters:
graphpad -
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Shows a file chooser if the filename from the document is null. Otherwise the method uses the file name from the document. Furthermore the method uses the registered file formats for the save process.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Overrides:
actionPerformed in class FileExit
See Also:
ActionListener.actionPerformed(ActionEvent)

update

public void update()
empty implementation for this typ of action

Overrides:
update in class FileExit