Class AutoSpellEditorKit
java.lang.Object
javax.swing.text.EditorKit
javax.swing.text.DefaultEditorKit
javax.swing.text.StyledEditorKit
com.swabunga.spell.swing.autospell.AutoSpellEditorKit
- All Implemented Interfaces:
AutoSpellConstants
,Serializable
,Cloneable
This editorkit just forwards all method calls to the original EditorKit
for all method but getAction where it also adds a "MarkAsMisspelled" action
and getViewFactory where we return our own ViewFactory (Based on the original).
- Author:
- Robert Gustavsson (robert@lindesign.se)
- 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
Fields inherited from interface com.swabunga.spell.swing.autospell.AutoSpellConstants
wordMisspelled, wordMisspelledTrue
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
void
Action[]
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
createInputAttributes
-
Constructor Details
-
AutoSpellEditorKit
-
-
Method Details
-
getStyledEditorKit
-
clone
- Overrides:
clone
in classStyledEditorKit
-
deinstall
- Overrides:
deinstall
in classStyledEditorKit
-
getCharacterAttributeRun
- Overrides:
getCharacterAttributeRun
in classStyledEditorKit
-
getInputAttributes
- Overrides:
getInputAttributes
in classStyledEditorKit
-
install
- Overrides:
install
in classStyledEditorKit
-
getContentType
- Overrides:
getContentType
in classDefaultEditorKit
-
getActions
- Overrides:
getActions
in classStyledEditorKit
-
createCaret
- Overrides:
createCaret
in classDefaultEditorKit
-
createDefaultDocument
- Overrides:
createDefaultDocument
in classStyledEditorKit
-
getViewFactory
- Overrides:
getViewFactory
in classStyledEditorKit
-
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
-
read
- Overrides:
read
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
-