javax.swing.plaf.basic
Class BasicComboPopup.InvocationMouseHandler

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.awt.event.MouseAdapter sample code for java.awt.event.MouseAdapter definition code for java.awt.event.MouseAdapter 
      extended by javax.swing.plaf.basic.BasicComboPopup.InvocationMouseHandler
All Implemented Interfaces:
MouseListener sample code for java.awt.event.MouseListener definition code for java.awt.event.MouseListener , EventListener sample code for java.util.EventListener definition code for java.util.EventListener
Enclosing class:
BasicComboPopup sample code for javax.swing.plaf.basic.BasicComboPopup definition code for javax.swing.plaf.basic.BasicComboPopup

protected class BasicComboPopup.InvocationMouseHandler
extends MouseAdapter sample code for java.awt.event.MouseAdapter definition code for java.awt.event.MouseAdapter

A listener to be registered upon the combo box (not its popup menu) to handle mouse events that affect the state of the popup menu. The main purpose of this listener is to make the popup menu appear and disappear. This listener also helps with click-and-drag scenarios by setting the selection if the mouse was released over the list during a drag.

Warning: We recommend that you not create subclasses of this class. If you absolutely must create a subclass, be sure to invoke the superclass version of each method.

See Also:
BasicComboPopup.createMouseListener() sample code for javax.swing.plaf.basic.BasicComboPopup.createMouseListener() definition code for javax.swing.plaf.basic.BasicComboPopup.createMouseListener()

Constructor Summary
protected BasicComboPopup.InvocationMouseHandler sample code for javax.swing.plaf.basic.BasicComboPopup.InvocationMouseHandler.BasicComboPopup.InvocationMouseHandler() definition code for javax.swing.plaf.basic.BasicComboPopup.InvocationMouseHandler.BasicComboPopup.InvocationMouseHandler() ()
           
 
Method Summary
 void mousePressed sample code for javax.swing.plaf.basic.BasicComboPopup.InvocationMouseHandler.mousePressed(java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicComboPopup.InvocationMouseHandler.mousePressed(java.awt.event.MouseEvent) (MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  e)
          Responds to mouse-pressed events on the combo box.
 void mouseReleased sample code for javax.swing.plaf.basic.BasicComboPopup.InvocationMouseHandler.mouseReleased(java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicComboPopup.InvocationMouseHandler.mouseReleased(java.awt.event.MouseEvent) (MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  e)
          Responds to the user terminating a click or drag that began on the combo box.
 
Methods inherited from class java.awt.event.MouseAdapter sample code for java.awt.event.MouseAdapter definition code for java.awt.event.MouseAdapter
mouseClicked sample code for java.awt.event.MouseAdapter.mouseClicked(java.awt.event.MouseEvent) definition code for java.awt.event.MouseAdapter.mouseClicked(java.awt.event.MouseEvent) , mouseEntered sample code for java.awt.event.MouseAdapter.mouseEntered(java.awt.event.MouseEvent) definition code for java.awt.event.MouseAdapter.mouseEntered(java.awt.event.MouseEvent) , mouseExited sample code for java.awt.event.MouseAdapter.mouseExited(java.awt.event.MouseEvent) definition code for java.awt.event.MouseAdapter.mouseExited(java.awt.event.MouseEvent)
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

BasicComboPopup.InvocationMouseHandler sample code for javax.swing.plaf.basic.BasicComboPopup.InvocationMouseHandler() definition code for javax.swing.plaf.basic.BasicComboPopup.InvocationMouseHandler()

protected BasicComboPopup.InvocationMouseHandler()
Method Detail

mousePressed sample code for javax.swing.plaf.basic.BasicComboPopup.InvocationMouseHandler.mousePressed(java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicComboPopup.InvocationMouseHandler.mousePressed(java.awt.event.MouseEvent)

public void mousePressed(MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  e)
Responds to mouse-pressed events on the combo box.

Specified by:
mousePressed sample code for java.awt.event.MouseListener.mousePressed(java.awt.event.MouseEvent) definition code for java.awt.event.MouseListener.mousePressed(java.awt.event.MouseEvent) in interface MouseListener sample code for java.awt.event.MouseListener definition code for java.awt.event.MouseListener
Overrides:
mousePressed sample code for java.awt.event.MouseAdapter.mousePressed(java.awt.event.MouseEvent) definition code for java.awt.event.MouseAdapter.mousePressed(java.awt.event.MouseEvent) in class MouseAdapter sample code for java.awt.event.MouseAdapter definition code for java.awt.event.MouseAdapter
Parameters:
e - the mouse-press event to be handled

mouseReleased sample code for javax.swing.plaf.basic.BasicComboPopup.InvocationMouseHandler.mouseReleased(java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicComboPopup.InvocationMouseHandler.mouseReleased(java.awt.event.MouseEvent)

public void mouseReleased(MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  e)
Responds to the user terminating a click or drag that began on the combo box.

Specified by:
mouseReleased sample code for java.awt.event.MouseListener.mouseReleased(java.awt.event.MouseEvent) definition code for java.awt.event.MouseListener.mouseReleased(java.awt.event.MouseEvent) in interface MouseListener sample code for java.awt.event.MouseListener definition code for java.awt.event.MouseListener
Overrides:
mouseReleased sample code for java.awt.event.MouseAdapter.mouseReleased(java.awt.event.MouseEvent) definition code for java.awt.event.MouseAdapter.mouseReleased(java.awt.event.MouseEvent) in class MouseAdapter sample code for java.awt.event.MouseAdapter definition code for java.awt.event.MouseAdapter
Parameters:
e - the mouse-release event to be handled