net.sourceforge.toscanaj.gui.action
Class ExportContextAction
java.lang.Object
javax.swing.AbstractAction
net.sourceforge.toscanaj.gui.action.KeyboardMappedAction
net.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).
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 |
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 |
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)
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