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 ClassesNested classes/interfaces inherited from class javax.swing.text.StyledEditorKit
StyledEditorKit.AlignmentAction, StyledEditorKit.BoldAction, StyledEditorKit.FontFamilyAction, StyledEditorKit.FontSizeAction, StyledEditorKit.ForegroundAction, StyledEditorKit.ItalicAction, StyledEditorKit.StyledTextAction, StyledEditorKit.UnderlineActionNested 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcorrectSelectionBounds(int[] selection, Document d) voidAction[]protected static ShapegetAllocation(View v, JEditorPane edit) protected intgetInsertPosition(int pos, Document d) voidvoidread(InputStream in, Document doc, int pos) voidvoidwrite(OutputStream out, Document doc, int pos, int len) voidMethods inherited from class javax.swing.text.StyledEditorKit
clone, createInputAttributes, getCharacterAttributeRun, getInputAttributesMethods inherited from class javax.swing.text.DefaultEditorKit
createCaret
-
Constructor Details
-
XMLEditorKit
public XMLEditorKit()
-
-
Method Details
-
getViewFactory
- Overrides:
getViewFactoryin classStyledEditorKit
-
createDefaultDocument
- Overrides:
createDefaultDocumentin classStyledEditorKit
-
getContentType
- Overrides:
getContentTypein classDefaultEditorKit
-
read
- Overrides:
readin classDefaultEditorKit- Throws:
IOExceptionBadLocationException
-
read
- Overrides:
readin classDefaultEditorKit- Throws:
IOExceptionBadLocationException
-
write
public void write(OutputStream out, Document doc, int pos, int len) throws IOException, BadLocationException - Overrides:
writein classDefaultEditorKit- Throws:
IOExceptionBadLocationException
-
write
public void write(Writer out, Document doc, int pos, int len) throws IOException, BadLocationException - Overrides:
writein classDefaultEditorKit- Throws:
IOExceptionBadLocationException
-
correctSelectionBounds
-
getInsertPosition
-
install
- Overrides:
installin classStyledEditorKit
-
deinstall
- Overrides:
deinstallin classStyledEditorKit
-
getAllocation
-
getActions
- Overrides:
getActionsin classStyledEditorKit
-