public final class ImportAction extends AbstractAction
Portfolio
s
used by this application with those defined in a single text file.
The text file must be the unaltered result of a previous ExportAction
.
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 |
---|
ImportAction(JFrame aFrame)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent event)
Allow the user to select a single file, and attempt to use its contents to replace
all currently stored
Portfolio objects. |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
public ImportAction(JFrame aFrame)
aFrame
- parent window to which this action is attached.public void actionPerformed(ActionEvent event)
Portfolio
objects.
If the user attempts to import a second time, present the file selection GUI using the directory in which they showed interest during the first import. (This will often decrease the navigation burden on the user.)
Copyright Hirondelle Systems - License - Generated 2013Sep20.10.58