Class 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)
    • 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
        Overrides:
        mouseReleased in class java.awt.event.MouseAdapter