hirondelle.stocks.export
Class ImportAction
Object
AbstractAction
ImportAction
- All Implemented Interfaces:
- ActionListener, Serializable, Cloneable, EventListener, Action
public final class ImportAction
- extends AbstractAction
Allows user to replace the all Portfolios
used by this application with those defined in a single text file.
The text file must be the unaltered result of a previous ExportAction.
- See Also:
- Serialized Form
|
Method Summary |
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. |
ImportAction
public ImportAction(JFrame aFrame)
- Constructor.
- Parameters:
aFrame - parent window to which this action is attached.
actionPerformed
public 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.
- If a file is not selected, then take no action.
- If a non-existing file is selected, inform the user and ask them to select
something else.
- If an existing but non-readable file is selected, inform the user and ask them to
select something else.
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 2008Jul12.10.53