com.swabunga.spell.swing.autospell

Class AutoSpellEditorKit

public class AutoSpellEditorKit extends StyledEditorKit implements AutoSpellConstants

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)

Constructor Summary
AutoSpellEditorKit(StyledEditorKit editorKit)
Method Summary
Objectclone()
CaretcreateCaret()
DocumentcreateDefaultDocument()
voiddeinstall(JEditorPane c)
Action[]getActions()
ElementgetCharacterAttributeRun()
StringgetContentType()
MutableAttributeSetgetInputAttributes()
StyledEditorKitgetStyledEditorKit()
ViewFactorygetViewFactory()
voidinstall(JEditorPane c)
voidread(InputStream in, Document doc, int pos)
voidread(Reader in, Document doc, int pos)
voidwrite(OutputStream out, Document doc, int pos, int len)
voidwrite(Writer out, Document doc, int pos, int len)

Constructor Detail

AutoSpellEditorKit

public AutoSpellEditorKit(StyledEditorKit editorKit)

Method Detail

clone

public Object clone()

createCaret

public Caret createCaret()

createDefaultDocument

public Document createDefaultDocument()

deinstall

public void deinstall(JEditorPane c)

getActions

public Action[] getActions()

getCharacterAttributeRun

public Element getCharacterAttributeRun()

getContentType

public String getContentType()

getInputAttributes

public MutableAttributeSet getInputAttributes()

getStyledEditorKit

public StyledEditorKit getStyledEditorKit()

getViewFactory

public ViewFactory getViewFactory()

install

public void install(JEditorPane c)

read

public void read(InputStream in, Document doc, int pos)

read

public void read(Reader in, Document doc, int pos)

write

public void write(OutputStream out, Document doc, int pos, int len)

write

public void write(Writer out, Document doc, int pos, int len)