net.clackrouter.actions
Class FileOpen

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by net.clackrouter.actions.AbstractActionDefault
          extended by net.clackrouter.actions.AbstractActionFile
              extended by net.clackrouter.actions.FileOpen
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action, TranslatorConstants

public class FileOpen
extends AbstractActionFile

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class net.clackrouter.actions.AbstractActionFile
AbstractActionFile.MyFileFilter
 
Field Summary
 
Fields inherited from class net.clackrouter.actions.AbstractActionFile
COMPRESS_FILES
 
Fields inherited from class net.clackrouter.actions.AbstractActionDefault
graphpad
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface net.clackrouter.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
FileOpen(ClackFramework graphpad)
          Constructor for FileOpen.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Shows a file chooser with the file filters from the file formats to select a file.
protected  void addDocument(javax.swing.JFileChooser chooser)
           
 void update()
          Empty implementation.
 
Methods inherited from class net.clackrouter.actions.AbstractActionFile
createInputStream, createInputStream, createOutputStream, createOutputStream, dialog, openDialog, saveDialog
 
Methods inherited from class net.clackrouter.actions.AbstractActionDefault
getCurrentDocument, getCurrentGraph, getCurrentGraphLayoutCache, getGraphpad, getMenuComponent, getMenuComponents, getName, getPresentationText, getToolComponent, getToolComponents, 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
 

Constructor Detail

FileOpen

public FileOpen(ClackFramework graphpad)
Constructor for FileOpen.

Parameters:
graphpad -
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Shows a file chooser with the file filters from the file formats to select a file. Furthermore the method uses the selected file format for the read process.

See Also:
ActionListener.actionPerformed(ActionEvent)

addDocument

protected void addDocument(javax.swing.JFileChooser chooser)

update

public void update()
Empty implementation. This Action should be available each time.

Overrides:
update in class AbstractActionDefault