|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.text.EditorKit
javax.swing.text.DefaultEditorKit
org.apache.batik.util.gui.xmleditor.XMLEditorKit
public class XMLEditorKit
This is the set of things needed by a text component to be a reasonably functioning editor for xml type document.
Nested Class Summary | |
---|---|
protected class |
XMLEditorKit.XMLViewFactory
A simple view factory implementation. |
Nested classes/interfaces inherited from class javax.swing.text.DefaultEditorKit |
---|
DefaultEditorKit.BeepAction, DefaultEditorKit.CopyAction, DefaultEditorKit.CutAction, DefaultEditorKit.DefaultKeyTypedAction, DefaultEditorKit.InsertBreakAction, DefaultEditorKit.InsertContentAction, DefaultEditorKit.InsertTabAction, DefaultEditorKit.PasteAction |
Field Summary | |
---|---|
protected XMLContext |
context
|
protected ViewFactory |
factory
|
static String |
XML_MIME_TYPE
|
Constructor Summary | |
---|---|
XMLEditorKit()
Creates a new instance of XMLEditorKit |
|
XMLEditorKit(XMLContext context)
Creates a new instance of XMLEditorKit |
Method Summary | |
---|---|
Object |
clone()
|
Document |
createDefaultDocument()
|
String |
getContentType()
Get the MIME type of the data that this kit represents support for. |
XMLContext |
getStylePreferences()
|
ViewFactory |
getViewFactory()
|
void |
install(JEditorPane c)
Overriden to set the JEditorPane font to match with the XMLContext |
Methods inherited from class javax.swing.text.DefaultEditorKit |
---|
createCaret, getActions, read, read, write, write |
Methods inherited from class javax.swing.text.EditorKit |
---|
deinstall |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String XML_MIME_TYPE
protected XMLContext context
protected ViewFactory factory
Constructor Detail |
---|
public XMLEditorKit()
public XMLEditorKit(XMLContext context)
context
- XMLContextMethod Detail |
---|
public XMLContext getStylePreferences()
public void install(JEditorPane c)
install
in class EditorKit
public String getContentType()
text/xml
.
getContentType
in class DefaultEditorKit
public Object clone()
clone
in class EditorKit
public Document createDefaultDocument()
createDefaultDocument
in class DefaultEditorKit
public ViewFactory getViewFactory()
getViewFactory
in class DefaultEditorKit
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |