com.japisoft.xmlpad.action.file
Class SaveAsAction
java.lang.Object
javax.swing.AbstractAction
com.japisoft.xmlpad.action.XMLAction
com.japisoft.xmlpad.action.file.SaveAction
com.japisoft.xmlpad.action.file.SaveAsAction
- All Implemented Interfaces:
- javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, Features, Properties, java.io.Serializable
- public class SaveAsAction
- extends SaveAction
Action for saving the current content
- Version:
- 1.1
- 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, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
Method Summary |
java.lang.Object |
getProperty(java.lang.String propertyName,
java.lang.Object defaultValue)
|
boolean |
notifyAction()
Notify action must be done. |
void |
setForceExtension(boolean enable)
Force the XML extension when choosing a file name |
void |
setProperty(java.lang.String propertyName,
java.lang.Object value)
Reset a property value for this action. |
Methods inherited from class com.japisoft.xmlpad.action.XMLAction |
actionPerformed, autoRequestFocus, dispose, getDefaultAccelerator, getDefaultIcon, getDefaultLabel, getDefaultMnemonic, getDefaultTooltip, getLabel, getName, getParam, getPopupGroup, getXMLContainer, getXMLEditor, hasFeature, installUIContent, isPopable, isToolbarable, notifyXMLContainer, notifyXMLEditor, setActionDelegate, setActionReferenceGroup, setActionReferenceIcon, setFeature, setParam, setPopable, setToolbarable, setXMLContainer, setXMLEditor |
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 |
ID
public static final java.lang.String ID
CURRENT_DIR_PROPERTY
public static final java.lang.String CURRENT_DIR_PROPERTY
- See Also:
- Constant Field Values
SaveAsAction
public SaveAsAction()
setProperty
public void setProperty(java.lang.String propertyName,
java.lang.Object value)
- Description copied from class:
XMLAction
- Reset a property value for this action. Note this is the reponsability of the
XMLAction to store it
- Overrides:
setProperty
in class SaveAction
getProperty
public java.lang.Object getProperty(java.lang.String propertyName,
java.lang.Object defaultValue)
- Overrides:
getProperty
in class XMLAction
- Returns:
- a property value for this action. If the current
XMLAction
has not overrided it a null
value will be returned
setForceExtension
public void setForceExtension(boolean enable)
- Force the XML extension when choosing a file name
notifyAction
public boolean notifyAction()
- Description copied from class:
XMLAction
- Notify action must be done. It returns INVALID_ACTION if the
action is not accessible and VALID_ACTION if this is correct.
- Overrides:
notifyAction
in class SaveAction
Copyright © 2006 JAPISoft. All Rights Reserved.