public final class EditSaver extends Object
CurrentPortfolio
.public EditSaver(Action aSaveAction, Action aSaveAsAction, JFrame aFrame)
aSaveAction
- performed if the user decides to save edits and the
CurrentPortfolio has a title.aSaveAsAction
- performed if the user decides to save edits and the
CurrentPortfolio does not have a title.aFrame
- parent window to which this dialog belongs.public void save(CurrentPortfolio aCurrentPortfolio, ActionEvent aEvent)
If aCurrentPortfolio has no unsaved edits, or if the user does not wish to save edits, then do nothing. Otherwise, perform either SaveAction or SaveAsAction, according to whether aCurrentPortfoilo is titled or untitled, respectively.
aEvent
- is passed to either SaveAction or
SaveAsAction.Copyright Hirondelle Systems - License - Generated 2013Sep20.10.58