|
||||||||||
| 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 - XMLContext| Method Detail |
|---|
public XMLContext getStylePreferences()
public void install(JEditorPane c)
install in class EditorKitpublic String getContentType()
text/xml.
getContentType in class DefaultEditorKitpublic Object clone()
clone in class EditorKitpublic Document createDefaultDocument()
createDefaultDocument in class DefaultEditorKitpublic ViewFactory getViewFactory()
getViewFactory in class DefaultEditorKit
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||