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

Nested Class Summary
 
Nested classes inherited from class com.japisoft.xmlpad.action.XMLAction
XMLAction.EmptyIcon
 
Field Summary
static java.lang.String ID
           
 
Fields inherited from class com.japisoft.xmlpad.action.file.SaveAction
ENCODING_PROPERTY
 
Fields inherited from class com.japisoft.xmlpad.action.XMLAction
AUTO_UI, IMAGE_EXT, IMAGE_SIZE, INVALID_ACTION, RESOURCE_BUNDLE, VALID_ACTION
 
Fields inherited from interface com.japisoft.xmlpad.action.Features
VALIDATING_FEATURE
 
Fields inherited from interface com.japisoft.xmlpad.action.Properties
FILE_ENCODING, INDENT_CHAR_PROPERTY, INDENT_SIZE_PROPERTY
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
SaveAsAction()
           
 
Method Summary
 boolean notifyAction()
          Notify action must be done.
 void setForceExtension(boolean enable)
          Force the XML extension when choosing a file name
 
Methods inherited from class com.japisoft.xmlpad.action.file.SaveAction
setProperty
 
Methods inherited from class com.japisoft.xmlpad.action.XMLAction
actionPerformed, dispose, getName, getParam, getPopupGroup, getProperty, getXMLContainer, getXMLEditor, hasFeature, isPopable, isToolbarable, setActionDelegate, setActionReferenceGroup, setActionReferenceIcon, setFeature, setParam, setPopable, setToolbarable, setXMLContainer, setXMLEditor
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final java.lang.String ID
Constructor Detail

SaveAsAction

public SaveAsAction()
Method Detail

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
Returns:
VALID_ACTION if the action is possible and else INVALID_ACTION