Class TouchscreenMouseListener

  • All Implemented Interfaces:
    java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.util.EventListener
    Direct Known Subclasses:
    TouchscreenMouseListener

    public class TouchscreenMouseListener
    extends java.awt.event.MouseAdapter
    This mouse listener implements touchscreen logic for most TouchscreenMouseListener.TouchscreenEnabledComponent vision components. All you need to do to use this is add an instance of it as a mouse listener to your component.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void addMobileFocusListener()
      This is a bit of a hack to put this here - but it helps the mobile module know when to show a keyboard.
      void mousePressed​(java.awt.event.MouseEvent e)  
      void mouseReleased​(java.awt.event.MouseEvent e)  
      • Methods inherited from class java.awt.event.MouseAdapter

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

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

      • TouchscreenMouseListener

        public TouchscreenMouseListener​(java.awt.Component parent)
    • Method Detail

      • addMobileFocusListener

        protected void addMobileFocusListener()
        This is a bit of a hack to put this here - but it helps the mobile module know when to show a keyboard. If you don't want this, override this and no-op it
      • mousePressed

        public void mousePressed​(java.awt.event.MouseEvent e)
        Specified by:
        mousePressed in interface java.awt.event.MouseListener
        Overrides:
        mousePressed in class java.awt.event.MouseAdapter
      • mouseReleased

        public void mouseReleased​(java.awt.event.MouseEvent e)
        Specified by:
        mouseReleased in interface java.awt.event.MouseListener
        Overrides:
        mouseReleased in class java.awt.event.MouseAdapter