Class AutoSpellCheckHandler
- java.lang.Object
-
- java.awt.event.MouseAdapter
-
- com.swabunga.spell.swing.autospell.AutoSpellCheckHandler
-
- All Implemented Interfaces:
AutoSpellConstants
,java.awt.event.MouseListener
,java.awt.event.MouseMotionListener
,java.awt.event.MouseWheelListener
,java.util.EventListener
,javax.swing.event.DocumentListener
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
Constructors Constructor Description AutoSpellCheckHandler(SpellChecker sc)
AutoSpellCheckHandler(SpellChecker sc, java.util.ResourceBundle rs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
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 interfacejavax.swing.event.DocumentListener
-
insertUpdate
public void insertUpdate(javax.swing.event.DocumentEvent evt)
- Specified by:
insertUpdate
in interfacejavax.swing.event.DocumentListener
-
removeUpdate
public void removeUpdate(javax.swing.event.DocumentEvent evt)
- Specified by:
removeUpdate
in interfacejavax.swing.event.DocumentListener
-
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent evt)
- Specified by:
mouseReleased
in interfacejava.awt.event.MouseListener
- Overrides:
mouseReleased
in classjava.awt.event.MouseAdapter
-
-