net.sourceforge.toscanaj.gui.action
Class ExportContextAction

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended bynet.sourceforge.toscanaj.gui.action.KeyboardMappedAction
          extended bynet.sourceforge.toscanaj.gui.action.ExportContextAction
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable
Direct Known Subclasses:
ExportBurmeisterFormatAction, ExportOALFormatAction

public abstract class ExportContextAction
extends KeyboardMappedAction

See Also:
Serialized Form
To do:
it would be better to fold the two subtypes of this into one, just offering two file types for export. We could also propose a sensible first name (context name + extension).

Nested Class Summary
static interface ExportContextAction.ContextSource
           
 
Field Summary
 
Fields inherited from class net.sourceforge.toscanaj.gui.action.KeyboardMappedAction
frame
 
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
ExportContextAction(java.awt.Frame frame, ExportContextAction.ContextSource contextSource)
           
ExportContextAction(java.awt.Frame frame, ExportContextAction.ContextSource contextSource, int mnemonic, javax.swing.KeyStroke keystroke)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
protected abstract  void exportFile(java.io.File selectedFile)
           
protected  ExportContextAction.ContextSource getContextSource()
           
protected abstract  ExtensionFileFilter getFileFilter()
           
protected abstract  java.lang.String getName()
           
 
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

ExportContextAction

public ExportContextAction(java.awt.Frame frame,
                           ExportContextAction.ContextSource contextSource)

ExportContextAction

public ExportContextAction(java.awt.Frame frame,
                           ExportContextAction.ContextSource contextSource,
                           int mnemonic,
                           javax.swing.KeyStroke keystroke)
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)

getContextSource

protected ExportContextAction.ContextSource getContextSource()

exportFile

protected abstract void exportFile(java.io.File selectedFile)
                            throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException

getFileFilter

protected abstract ExtensionFileFilter getFileFilter()

getName

protected abstract java.lang.String getName()


The ToscanaJ project