dsto.dfc.swing.persistence
Class BasicDocumentSaveAsCommand

java.lang.Object
  extended by dsto.dfc.swing.commands.AbstractCommand
      extended by dsto.dfc.swing.commands.AbstractMutableCommand
          extended by dsto.dfc.swing.commands.BasicFileSaveAsCommand
              extended by 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

Field Summary
 
Fields inherited from class dsto.dfc.swing.commands.BasicFileSaveAsCommand
owner
 
Fields inherited from class dsto.dfc.swing.commands.AbstractMutableCommand
listeners
 
Fields inherited from class dsto.dfc.swing.commands.AbstractCommand
displayName, icon
 
Fields inherited from interface dsto.dfc.swing.icons.Iconic
NULL_ICON
 
Constructor Summary
BasicDocumentSaveAsCommand(Document document)
           
 
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.
 
Methods inherited from class dsto.dfc.swing.commands.BasicFileSaveAsCommand
dialogCancelled, getAccelerator, getGroupInView, getMnemonic, getName, handleError, handleError, initFileChooser, isInteractive, saveFile
 
Methods inherited from class dsto.dfc.swing.commands.AbstractMutableCommand
addPropertyChangeListener, clone, isEnabled, removePropertyChangeListener, setEnabled, setIcon
 
Methods inherited from class dsto.dfc.swing.commands.AbstractCommand
actionPerformed, canReplace, getDefaultDisplayName, getDisplayName, getIcon, getLargeIcon, getLogString, setDisplayName
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicDocumentSaveAsCommand

public BasicDocumentSaveAsCommand(Document document)
Method Detail

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