com.swabunga.spell.swing.autospell

Class AutoSpellCheckHandler

public class AutoSpellCheckHandler extends MouseAdapter implements DocumentListener, AutoSpellConstants

This class handles the actual autospelling by implementing some listeners on the spellchecked JEditorPane and Document.

Author: Robert Gustavsson (robert@lindesign.se)

Constructor Summary
AutoSpellCheckHandler(SpellChecker sc)
AutoSpellCheckHandler(SpellChecker sc, ResourceBundle rs)
Method Summary
voidaddJEditorPane(JEditorPane pane)
voidchangedUpdate(DocumentEvent evt)
voidinsertUpdate(DocumentEvent evt)
voidmouseReleased(MouseEvent evt)
voidremoveJEditorPane(JEditorPane pane)
voidremoveUpdate(DocumentEvent evt)

Constructor Detail

AutoSpellCheckHandler

public AutoSpellCheckHandler(SpellChecker sc)

AutoSpellCheckHandler

public AutoSpellCheckHandler(SpellChecker sc, ResourceBundle rs)

Method Detail

addJEditorPane

public void addJEditorPane(JEditorPane pane)

changedUpdate

public void changedUpdate(DocumentEvent evt)

insertUpdate

public void insertUpdate(DocumentEvent evt)

mouseReleased

public void mouseReleased(MouseEvent evt)

removeJEditorPane

public void removeJEditorPane(JEditorPane pane)

removeUpdate

public void removeUpdate(DocumentEvent evt)