Class SGUI.TextCopyPasteMouseListener

  • All Implemented Interfaces:
    java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.util.EventListener
    Enclosing class:
    SGUI

    public static class SGUI.TextCopyPasteMouseListener
    extends java.awt.event.MouseAdapter
    Listener for copy-paste menu.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected javax.swing.text.JTextComponent textcomponent
      The text component.
    • Constructor Summary

      Constructors 
      Constructor Description
      TextCopyPasteMouseListener​(javax.swing.text.JTextComponent textcomponent)
      Creates the listener.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void mousePressed​(java.awt.event.MouseEvent e)
      Called when mouse pressed.
      • Methods inherited from class java.awt.event.MouseAdapter

        mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseReleased, mouseWheelMoved
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • textcomponent

        protected javax.swing.text.JTextComponent textcomponent
        The text component.
    • Constructor Detail

      • TextCopyPasteMouseListener

        public TextCopyPasteMouseListener​(javax.swing.text.JTextComponent textcomponent)
        Creates the listener.
    • Method Detail

      • mousePressed

        public void mousePressed​(java.awt.event.MouseEvent e)
        Called when mouse pressed.
        Specified by:
        mousePressed in interface java.awt.event.MouseListener
        Overrides:
        mousePressed in class java.awt.event.MouseAdapter