public class SpellCheckedDocument
extends javax.swing.text.DefaultStyledDocument
javax.swing.text.DefaultStyledDocument.AttributeUndoableEdit, javax.swing.text.DefaultStyledDocument.ElementBuffer, javax.swing.text.DefaultStyledDocument.ElementSpec, javax.swing.text.DefaultStyledDocument.SectionElementjavax.swing.text.AbstractDocument.AbstractElement, javax.swing.text.AbstractDocument.AttributeContext, javax.swing.text.AbstractDocument.BranchElement, javax.swing.text.AbstractDocument.Content, javax.swing.text.AbstractDocument.DefaultDocumentEvent, javax.swing.text.AbstractDocument.ElementEdit, javax.swing.text.AbstractDocument.LeafElement| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ERROR_STYLE |
| Constructor and Description |
|---|
SpellCheckedDocument(SpellDictionary dictionary) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkSpelling() |
void |
checkSplittedWords(java.lang.String divider,
java.lang.String line) |
java.lang.String |
clean(java.lang.String word) |
void |
insertString(int offset,
java.lang.String string,
javax.swing.text.AttributeSet a) |
void |
remove(int offset,
int len) |
void |
setCheckSpelling(boolean check) |
addDocumentListener, addStyle, create, createDefaultRoot, getBackground, getCharacterElement, getDefaultRootElement, getFont, getForeground, getLogicalStyle, getParagraphElement, getStyle, getStyleNames, insert, insertUpdate, removeDocumentListener, removeElement, removeStyle, removeUpdate, setCharacterAttributes, setLogicalStyle, setParagraphAttributes, styleChangedaddUndoableEditListener, createBranchElement, createLeafElement, createPosition, dump, fireChangedUpdate, fireInsertUpdate, fireRemoveUpdate, fireUndoableEditUpdate, getAsynchronousLoadPriority, getAttributeContext, getBidiRootElement, getContent, getCurrentWriter, getDocumentFilter, getDocumentListeners, getDocumentProperties, getEndPosition, getLength, getListeners, getProperty, getRootElements, getStartPosition, getText, getText, getUndoableEditListeners, postRemoveUpdate, putProperty, readLock, readUnlock, removeUndoableEditListener, render, replace, setAsynchronousLoadPriority, setDocumentFilter, setDocumentProperties, writeLock, writeUnlockpublic static final java.lang.String ERROR_STYLE
public SpellCheckedDocument(SpellDictionary dictionary)
public void checkSpelling()
public void setCheckSpelling(boolean check)
public void insertString(int offset,
java.lang.String string,
javax.swing.text.AttributeSet a)
throws javax.swing.text.BadLocationException
insertString in interface javax.swing.text.DocumentinsertString in class javax.swing.text.AbstractDocumentjavax.swing.text.BadLocationExceptionpublic void remove(int offset,
int len)
throws javax.swing.text.BadLocationException
remove in interface javax.swing.text.Documentremove in class javax.swing.text.AbstractDocumentjavax.swing.text.BadLocationExceptionpublic java.lang.String clean(java.lang.String word)
public void checkSplittedWords(java.lang.String divider,
java.lang.String line)