com.swabunga.spell.swing

Class SpellCheckedDocument

public class SpellCheckedDocument extends DefaultStyledDocument

Author: Stig Tanggaard

Field Summary
static StringERROR_STYLE
Constructor Summary
SpellCheckedDocument(SpellDictionary dictionary)
Method Summary
voidcheckSpelling()
voidcheckSplittedWords(String divider, String line)
Stringclean(String word)
voidinsertString(int offset, String string, AttributeSet a)
voidremove(int offset, int len)
voidsetCheckSpelling(boolean check)

Field Detail

ERROR_STYLE

public static final String ERROR_STYLE

Constructor Detail

SpellCheckedDocument

public SpellCheckedDocument(SpellDictionary dictionary)

Method Detail

checkSpelling

public void checkSpelling()

checkSplittedWords

public void checkSplittedWords(String divider, String line)

clean

public String clean(String word)

insertString

public void insertString(int offset, String string, AttributeSet a)

remove

public void remove(int offset, int len)

setCheckSpelling

public void setCheckSpelling(boolean check)