Class ViewJFrameRegisteredImages.MouseClickAdapter

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

    private class ViewJFrameRegisteredImages.MouseClickAdapter
    extends java.awt.event.MouseAdapter
    As an extension of MouseAdapter, this class merely responds on clicked list events. In particular, the double-clicked item is brought to the front if the image is associated with an image frame.
    See Also:
    ViewJFrameRegisteredImages#bringToFront(String)
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private MouseClickAdapter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void mouseClicked​(java.awt.event.MouseEvent event)
      Responds only on double-clicked events from the JList.
      • Methods inherited from class java.awt.event.MouseAdapter

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

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

      • MouseClickAdapter

        private MouseClickAdapter()
    • Method Detail

      • mouseClicked

        public void mouseClicked​(java.awt.event.MouseEvent event)
        Responds only on double-clicked events from the JList. The double-clicked list item brings to the front the frame of the associated image.

        Ignores ClassCastExceptions, and will present to the user the error messages if there are NullPointerExceptions.

        Specified by:
        mouseClicked in interface java.awt.event.MouseListener
        Overrides:
        mouseClicked in class java.awt.event.MouseAdapter
        See Also:
        ViewJFrameRegisteredImages#bringToFront(String)