public final class ExportAction extends AbstractAction
Portfolio
data as a single text file.
The text file is not intended to be edited by the end user, but rather
as the input to the corresponding ImportAction
. The format of the
file is defined by Preferences.exportSubtree(java.io.OutputStream)
.
The file name and extension are arbitrary, and defined entirely by the user.
changeSupport, enabled
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
Constructor and Description |
---|
ExportAction(JFrame aFrame)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent event)
Allow the user to choose a destination file, then write the content of
all saved Portfolio objects to this file as XML.
|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
public ExportAction(JFrame aFrame)
aFrame
- parent frame to which this dialog is attached.public void actionPerformed(ActionEvent event)
User navigation is minimized by storing the apparent directory of current interest. If the user selects this action a second time, then the file selection dialog is pre-set to this directory of interest, so that repeated navigation of the file system is avoided.
Copyright Hirondelle Systems - License - Generated 2013Sep20.10.58