com.lightdev.app.shtm
Class FrmMain.SHTMLFileSaveAsAction
java.lang.Object
javax.swing.AbstractAction
com.lightdev.app.shtm.FrmMain.SHTMLFileSaveAsAction
- All Implemented Interfaces:
- SHTMLAction, java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
- Enclosing class:
- FrmMain
public class FrmMain.SHTMLFileSaveAsAction
- extends javax.swing.AbstractAction
- implements SHTMLAction
save a document under a different name and/or location
If a file already exists at the chosen location / name, the method
will ask the user if the existing file shall be overwritten.
- See Also:
- Serialized Form
Fields inherited from class javax.swing.AbstractAction |
changeSupport, enabled |
Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.swing.Action |
addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
FrmMain.SHTMLFileSaveAsAction
public FrmMain.SHTMLFileSaveAsAction()
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent ae)
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
createNewFileSaver
public FrmMain.SHTMLFileSaveAsAction.NewFileSaver createNewFileSaver(java.net.URL url)
- get a FileSaver object for the document currently active
- Parameters:
url
- the url of the file to save
createNewFileSaver
public FrmMain.SHTMLFileSaveAsAction.NewFileSaver createNewFileSaver(java.net.URL url,
DocumentPane.DocumentPaneListener listener)
- get a FileSaver object for the document currently active
- Parameters:
url
- the url of the file to save
update
public void update()
- Description copied from interface:
SHTMLAction
- update the action's state
- Specified by:
update
in interface SHTMLAction
getProperties
public void getProperties()
- Description copied from interface:
SHTMLAction
- this method should be called from the constructor
of each SHTMLAction and can be used to get
action properties from a resource file
- Specified by:
getProperties
in interface SHTMLAction