Class SmartTextComponentSupport

java.lang.Object
se.datadosen.component.SmartTextComponentSupport
All Implemented Interfaces:
MouseListener, EventListener, UndoableEditListener

public class SmartTextComponentSupport extends Object implements UndoableEditListener, MouseListener
  • Field Details

  • Constructor Details

    • SmartTextComponentSupport

      public SmartTextComponentSupport(JTextComponent comp)
  • Method Details

    • getCurrentComponent

      public static JTextComponent getCurrentComponent()
      Returns:
      Component that currently has mouse hovering over it
    • isAllowHTMLEditing

      public boolean isAllowHTMLEditing()
    • setAllowHTMLEditing

      public void setAllowHTMLEditing(boolean allowHTMLEditing)
    • isFullHTMLEditing

      public boolean isFullHTMLEditing()
    • setFullHTMLEditing

      public void setFullHTMLEditing(boolean fullHTMLEditing)
    • getPopupMenu

      public JPopupMenu getPopupMenu()
      Trigger lazy sticky loading of menu
      Returns:
    • getUndoManager

      public UndoManager getUndoManager()
    • doPopup

      public void doPopup(MouseEvent e)
    • undoableEditHappened

      public void undoableEditHappened(UndoableEditEvent e)
      Implements UndoableEditListener
      Specified by:
      undoableEditHappened in interface UndoableEditListener
      Parameters:
      e -
    • isSpelling

      public boolean isSpelling()
    • installHoverButton

      public void installHoverButton(Action action)
    • mouseClicked

      public void mouseClicked(MouseEvent e)
      Specified by:
      mouseClicked in interface MouseListener
    • mousePressed

      public void mousePressed(MouseEvent e)
      Specified by:
      mousePressed in interface MouseListener
    • mouseReleased

      public void mouseReleased(MouseEvent e)
      Specified by:
      mouseReleased in interface MouseListener
    • mouseEntered

      public void mouseEntered(MouseEvent e)
      Specified by:
      mouseEntered in interface MouseListener
    • mouseExited

      public void mouseExited(MouseEvent e)
      Specified by:
      mouseExited in interface MouseListener