org.openbp.swing.components.popupfield
Class JSelectionPopup.ListMouseHandler

java.lang.Object
  extended by java.awt.event.MouseAdapter
      extended by javax.swing.event.MouseInputAdapter
          extended by org.openbp.swing.components.popupfield.JSelectionPopup.ListMouseHandler
All Implemented Interfaces:
java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.util.EventListener, javax.swing.event.MouseInputListener
Enclosing class:
JSelectionPopup

protected class JSelectionPopup.ListMouseHandler
extends javax.swing.event.MouseInputAdapter


Constructor Summary
protected JSelectionPopup.ListMouseHandler()
           
 
Method Summary
 void mouseMoved(java.awt.event.MouseEvent e)
          Changes the selected item as you move the mouse over the list.
 void mouseReleased(java.awt.event.MouseEvent e)
          Updates the selection field index and hides the popup when the mouse is released in the list.
 
Methods inherited from class java.awt.event.MouseAdapter
mouseClicked, mouseDragged, mouseEntered, mouseExited, mousePressed, mouseWheelMoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.awt.event.MouseListener
mouseClicked, mouseEntered, mouseExited, mousePressed
 
Methods inherited from interface java.awt.event.MouseMotionListener
mouseDragged
 

Constructor Detail

JSelectionPopup.ListMouseHandler

protected JSelectionPopup.ListMouseHandler()
Method Detail

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Updates the selection field index and hides the popup when the mouse is released in the list.

Specified by:
mouseReleased in interface java.awt.event.MouseListener
Overrides:
mouseReleased in class java.awt.event.MouseAdapter

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent e)
Changes the selected item as you move the mouse over the list. The selection change is not committed to the model, this is for user feedback only.

Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener
Overrides:
mouseMoved in class java.awt.event.MouseAdapter


Copyright © 2011. All Rights Reserved.