Class XMLEditorKit
java.lang.Object
javax.swing.text.EditorKit
javax.swing.text.DefaultEditorKit
org.apache.batik.util.gui.xmleditor.XMLEditorKit
- All Implemented Interfaces:
Serializable
,Cloneable
This is the set of things needed by a text component to be a reasonably
functioning editor for xml type document.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
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
FieldsFields inherited from class javax.swing.text.DefaultEditorKit
backwardAction, beepAction, beginAction, beginLineAction, beginLineUpAction, beginParagraphAction, beginWordAction, copyAction, cutAction, defaultKeyTypedAction, deleteNextCharAction, deleteNextWordAction, deletePrevCharAction, deletePrevWordAction, downAction, endAction, endLineAction, endLineDownAction, EndOfLineStringProperty, endParagraphAction, endWordAction, forwardAction, insertBreakAction, insertContentAction, insertTabAction, nextWordAction, pageDownAction, pageUpAction, pasteAction, previousWordAction, readOnlyAction, selectAllAction, selectionBackwardAction, selectionBeginAction, selectionBeginLineAction, selectionBeginParagraphAction, selectionBeginWordAction, selectionDownAction, selectionEndAction, selectionEndLineAction, selectionEndParagraphAction, selectionEndWordAction, selectionForwardAction, selectionNextWordAction, selectionPreviousWordAction, selectionUpAction, selectLineAction, selectParagraphAction, selectWordAction, upAction, writableAction
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of XMLEditorKitXMLEditorKit
(XMLContext context) Creates a new instance of XMLEditorKit -
Method Summary
Modifier and TypeMethodDescriptionclone()
Get the MIME type of the data that this kit represents support for.void
Overriden to set the JEditorPane font to match with the XMLContextMethods inherited from class javax.swing.text.DefaultEditorKit
createCaret, getActions, read, read, write, write
-
Field Details
-
XML_MIME_TYPE
- See Also:
-
context
-
factory
-
-
Constructor Details
-
XMLEditorKit
public XMLEditorKit()Creates a new instance of XMLEditorKit -
XMLEditorKit
Creates a new instance of XMLEditorKit- Parameters:
context
- XMLContext
-
-
Method Details
-
getStylePreferences
- Returns:
- XMLContext
-
install
Overriden to set the JEditorPane font to match with the XMLContext -
getContentType
Get the MIME type of the data that this kit represents support for. This kit supports the typetext/xml
.- Overrides:
getContentType
in classDefaultEditorKit
-
clone
-
createDefaultDocument
- Overrides:
createDefaultDocument
in classDefaultEditorKit
-
getViewFactory
- Overrides:
getViewFactory
in classDefaultEditorKit
-