dsto.dfc.swing.persistence
Class BasicDocumentSaveAsCommand
java.lang.Object
dsto.dfc.swing.commands.AbstractCommand
dsto.dfc.swing.commands.AbstractMutableCommand
dsto.dfc.swing.commands.BasicFileSaveAsCommand
dsto.dfc.swing.persistence.BasicDocumentSaveAsCommand
- All Implemented Interfaces:
- Command, Iconic, Copyable, PropertyEventSource, ActionListener, Cloneable, EventListener
public class BasicDocumentSaveAsCommand
- extends BasicFileSaveAsCommand
Basic command to execute the saveAs() method on a Document
.
- Version:
- $Revision$
- Author:
- Matthew Phillips
Method Summary |
void |
execute()
Provides a basic implementation: pops up a file chooser and calls
either saveFile () or dialogCancelled (). |
String |
getDescription()
A short description of the command, suitable for a tooltip or use
in a status panel. |
BasicDocumentSaveAsCommand
public BasicDocumentSaveAsCommand(Document document)
execute
public void execute()
- Description copied from class:
BasicFileSaveAsCommand
- Provides a basic implementation: pops up a file chooser and calls
either saveFile () or dialogCancelled ().
- Specified by:
execute
in interface Command
- Overrides:
execute
in class BasicFileSaveAsCommand
- See Also:
BasicFileSaveAsCommand.initFileChooser(javax.swing.JFileChooser)
,
BasicFileSaveAsCommand.saveFile(javax.swing.JFileChooser)
,
BasicFileSaveAsCommand.dialogCancelled(javax.swing.JFileChooser)
getDescription
public String getDescription()
- Description copied from interface:
Command
- A short description of the command, suitable for a tooltip or use
in a status panel.
- Specified by:
getDescription
in interface Command
- Overrides:
getDescription
in class BasicFileSaveAsCommand
Copyright © 2008 Commonwealth of Australia