|
SMACS | |||||||||
| 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
smacs.xngr.browser.editor.XmlEditorKit
The XML editor kit supports handling of editing XML content. It supports syntax highlighting, tab replacements and automatic indents.
Note: The XML Editor package is based on the JavaEditorKit example as described in the article 'Customizing a Text Editor' by Timothy Prinzing. See: http://java.sun.com/products/jfc/tsc/articles/text/editor_kit/
| Nested Class Summary |
| Nested classes 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 |
| Constructor Summary | |
XmlEditorKit(XmlEditorPane editor)
Constructs the view factory and the Context. |
|
| Method Summary | |
Document |
createDefaultDocument()
Creates an uninitialized xml document. |
String |
getContentType()
Get the MIME type of the data that this kit represents support for. |
Font |
getFont()
Get the Font type for this kit. |
ViewFactory |
getViewFactory()
Fetches the XML factory that can produce views for XML Documents. |
void |
setFont(Font font)
|
| Methods inherited from class javax.swing.text.DefaultEditorKit |
createCaret, getActions, read, read, write, write |
| Methods inherited from class javax.swing.text.EditorKit |
clone, deinstall, install |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XmlEditorKit(XmlEditorPane editor)
| Method Detail |
public String getContentType()
text/xml.
public void setFont(Font font)
public Font getFont()
public Document createDefaultDocument()
public final ViewFactory getViewFactory()
|
SMACS | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||