com.swabunga.spell.swing.autospell
Class AutoSpellCheckHandler

java.lang.Object
  extended byjava.awt.event.MouseAdapter
      extended bycom.swabunga.spell.swing.autospell.AutoSpellCheckHandler
All Implemented Interfaces:
AutoSpellConstants, javax.swing.event.DocumentListener, java.util.EventListener, java.awt.event.MouseListener

public class AutoSpellCheckHandler
extends java.awt.event.MouseAdapter
implements javax.swing.event.DocumentListener, AutoSpellConstants

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

Author:
Robert Gustavsson (robert@lindesign.se)

Field Summary
 
Fields inherited from interface com.swabunga.spell.swing.autospell.AutoSpellConstants
wordMisspelled, wordMisspelledTrue
 
Constructor Summary
AutoSpellCheckHandler(SpellChecker sc)
           
AutoSpellCheckHandler(SpellChecker sc, java.util.ResourceBundle rs)
           
 
Method Summary
 void addJEditorPane(javax.swing.JEditorPane pane)
           
 void changedUpdate(javax.swing.event.DocumentEvent evt)
           
 void insertUpdate(javax.swing.event.DocumentEvent evt)
           
 void mouseReleased(java.awt.event.MouseEvent evt)
           
 void removeJEditorPane(javax.swing.JEditorPane pane)
           
 void removeUpdate(javax.swing.event.DocumentEvent evt)
           
 
Methods inherited from class java.awt.event.MouseAdapter
mouseClicked, mouseEntered, mouseExited, mousePressed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoSpellCheckHandler

public AutoSpellCheckHandler(SpellChecker sc)

AutoSpellCheckHandler

public AutoSpellCheckHandler(SpellChecker sc,
                             java.util.ResourceBundle rs)
Method Detail

addJEditorPane

public void addJEditorPane(javax.swing.JEditorPane pane)

removeJEditorPane

public void removeJEditorPane(javax.swing.JEditorPane pane)

changedUpdate

public void changedUpdate(javax.swing.event.DocumentEvent evt)
Specified by:
changedUpdate in interface javax.swing.event.DocumentListener

insertUpdate

public void insertUpdate(javax.swing.event.DocumentEvent evt)
Specified by:
insertUpdate in interface javax.swing.event.DocumentListener

removeUpdate

public void removeUpdate(javax.swing.event.DocumentEvent evt)
Specified by:
removeUpdate in interface javax.swing.event.DocumentListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent evt)
Specified by:
mouseReleased in interface java.awt.event.MouseListener