com.japisoft.xmlpad.action
Class FormatAction
java.lang.Object
|
+--javax.swing.AbstractAction
|
+--com.japisoft.xmlpad.action.XMLAction
|
+--com.japisoft.xmlpad.action.FormatAction
- All Implemented Interfaces:
- javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable
- public class FormatAction
- extends XMLAction
Action for formatting the XML content
- Version:
- 1.1
- Author:
- (c) 2002 - 2003 JAPISOFT
- See Also:
XMLAction
,
Serialized Form
Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
Method Summary |
static java.lang.String |
getWriterEncoding()
|
boolean |
notifyAction()
Notify action must be done. |
void |
print(int indent,
org.w3c.dom.Node node)
Prints the specified node, recursively. |
void |
print(org.w3c.dom.Node node)
|
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 |
FormatAction
public FormatAction()
notifyAction
public boolean notifyAction()
- Description copied from class:
XMLAction
- Notify action must be done. It return false if the
action is not accessible
- Specified by:
notifyAction
in class XMLAction
- Returns:
- true if the action is possible
getWriterEncoding
public static java.lang.String getWriterEncoding()
print
public void print(org.w3c.dom.Node node)
print
public void print(int indent,
org.w3c.dom.Node node)
- Prints the specified node, recursively.