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.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, 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, writableActionFields inherited from interface com.swabunga.spell.swing.autospell.AutoSpellConstants
wordMisspelled, wordMisspelledTrue -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()voidAction[]voidvoidread(InputStream in, Document doc, int pos) voidvoidwrite(OutputStream out, Document doc, int pos, int len) voidMethods inherited from class javax.swing.text.StyledEditorKit
createInputAttributes
-
Constructor Details
-
AutoSpellEditorKit
-
-
Method Details
-
getStyledEditorKit
-
clone
- Overrides:
clonein classStyledEditorKit
-
deinstall
- Overrides:
deinstallin classStyledEditorKit
-
getCharacterAttributeRun
- Overrides:
getCharacterAttributeRunin classStyledEditorKit
-
getInputAttributes
- Overrides:
getInputAttributesin classStyledEditorKit
-
install
- Overrides:
installin classStyledEditorKit
-
getContentType
- Overrides:
getContentTypein classDefaultEditorKit
-
getActions
- Overrides:
getActionsin classStyledEditorKit
-
createCaret
- Overrides:
createCaretin classDefaultEditorKit
-
createDefaultDocument
- Overrides:
createDefaultDocumentin classStyledEditorKit
-
getViewFactory
- Overrides:
getViewFactoryin classStyledEditorKit
-
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
-
read
- Overrides:
readin classDefaultEditorKit- Throws:
IOExceptionBadLocationException
-
write
public void write(Writer out, Document doc, int pos, int len) throws IOException, BadLocationException - Overrides:
writein classDefaultEditorKit- Throws:
IOExceptionBadLocationException
-