Package net.simplace.core.xmleditorkit
Class XMLEditorKit
java.lang.Object
javax.swing.text.EditorKit
javax.swing.text.DefaultEditorKit
javax.swing.text.StyledEditorKit
net.simplace.core.xmleditorkit.XMLEditorKit
- All Implemented Interfaces:
Serializable
,Cloneable
- Author:
- Stanislav Lapitsky
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.text.StyledEditorKit
StyledEditorKit.AlignmentAction, StyledEditorKit.BoldAction, StyledEditorKit.FontFamilyAction, StyledEditorKit.FontSizeAction, StyledEditorKit.ForegroundAction, StyledEditorKit.ItalicAction, StyledEditorKit.StyledTextAction, StyledEditorKit.UnderlineAction
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
Fields inherited from class javax.swing.text.DefaultEditorKit
backwardAction, beepAction, beginAction, beginLineAction, beginParagraphAction, beginWordAction, copyAction, cutAction, defaultKeyTypedAction, deleteNextCharAction, deleteNextWordAction, deletePrevCharAction, deletePrevWordAction, downAction, endAction, endLineAction, 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
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
correctSelectionBounds
(int[] selection, Document d) void
Action[]
protected static Shape
getAllocation
(View v, JEditorPane edit) protected int
getInsertPosition
(int pos, Document d) void
void
read
(InputStream in, Document doc, int pos) void
void
write
(OutputStream out, Document doc, int pos, int len) void
Methods inherited from class javax.swing.text.StyledEditorKit
clone, createInputAttributes, getCharacterAttributeRun, getInputAttributes
Methods inherited from class javax.swing.text.DefaultEditorKit
createCaret
-
Constructor Details
-
XMLEditorKit
public XMLEditorKit()
-
-
Method Details
-
getViewFactory
- Overrides:
getViewFactory
in classStyledEditorKit
-
createDefaultDocument
- Overrides:
createDefaultDocument
in classStyledEditorKit
-
getContentType
- Overrides:
getContentType
in classDefaultEditorKit
-
read
- Overrides:
read
in classDefaultEditorKit
- Throws:
IOException
BadLocationException
-
read
- Overrides:
read
in classDefaultEditorKit
- Throws:
IOException
BadLocationException
-
write
public void write(OutputStream out, Document doc, int pos, int len) throws IOException, BadLocationException - Overrides:
write
in classDefaultEditorKit
- Throws:
IOException
BadLocationException
-
write
public void write(Writer out, Document doc, int pos, int len) throws IOException, BadLocationException - Overrides:
write
in classDefaultEditorKit
- Throws:
IOException
BadLocationException
-
correctSelectionBounds
-
getInsertPosition
-
install
- Overrides:
install
in classStyledEditorKit
-
deinstall
- Overrides:
deinstall
in classStyledEditorKit
-
getAllocation
-
getActions
- Overrides:
getActions
in classStyledEditorKit
-