Package jsyntaxpane.actions
Class XmlPrettifyAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- javax.swing.text.TextAction
-
- jsyntaxpane.actions.DefaultSyntaxAction
-
- jsyntaxpane.actions.XmlPrettifyAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
,SyntaxAction
public class XmlPrettifyAction extends DefaultSyntaxAction
Attempt to prettify an XML document.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class jsyntaxpane.actions.DefaultSyntaxAction
ACTION_PREFIX, LARGE_ICONS_LOC_PREFIX, SMALL_ICONS_LOC_PREFIX
-
-
Constructor Summary
Constructors Constructor Description XmlPrettifyAction()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
javax.xml.parsers.DocumentBuilder
getDocBuilder()
static javax.xml.parsers.DocumentBuilderFactory
getDocBuilderFactory()
static javax.xml.transform.Transformer
getTransformer()
void
setIgnoreComments(java.lang.String ic)
void
setIgnoreWhiteSpace(java.lang.String value)
void
setIndent(java.lang.String text)
void
setIndentAmount(java.lang.String text)
void
setSOmitDeclaration(java.lang.String text)
void
setStandAlone(java.lang.String text)
-
Methods inherited from class jsyntaxpane.actions.DefaultSyntaxAction
actionPerformed, config, setLargeIcon, setMenuText, setSmallIcon, setToolTip, toString
-
Methods inherited from class javax.swing.text.TextAction
augmentList, getFocusedComponent, getTextComponent
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed
in interfacejava.awt.event.ActionListener
- Overrides:
actionPerformed
in classDefaultSyntaxAction
-
getTransformer
public static javax.xml.transform.Transformer getTransformer()
-
setIndent
public void setIndent(java.lang.String text)
-
setStandAlone
public void setStandAlone(java.lang.String text)
-
setSOmitDeclaration
public void setSOmitDeclaration(java.lang.String text)
-
setIndentAmount
public void setIndentAmount(java.lang.String text)
-
setIgnoreComments
public void setIgnoreComments(java.lang.String ic)
-
setIgnoreWhiteSpace
public void setIgnoreWhiteSpace(java.lang.String value)
-
getDocBuilderFactory
public static javax.xml.parsers.DocumentBuilderFactory getDocBuilderFactory()
-
getDocBuilder
public javax.xml.parsers.DocumentBuilder getDocBuilder()
-
-