javax.swing.plaf.basic
Class BasicComboPopup.InvocationMouseHandler

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

protected class BasicComboPopup.InvocationMouseHandler
extends MouseAdapter

InvocationMouseHandler is a listener that listens to mouse events occuring in the combo box. Note that this listener doesn't listen to mouse events occuring in the popup portion of the combo box, it only listens to main combo box part(area that displays selected item). This listener is responsible for showing and hiding popup portion of the combo box.


Constructor Summary
protected BasicComboPopup.InvocationMouseHandler()
          Creates a new InvocationMouseHandler object.
 
Method Summary
 void mousePressed(MouseEvent e)
          This method is invoked whenever mouse is being pressed over the main part of the combo box.
 void mouseReleased(MouseEvent e)
          This method is invoked whenever mouse event was originated in the combo box and released either in the combBox list of items or in the combo box itself.
 
Methods inherited from class java.awt.event.MouseAdapter
mouseClicked, mouseEntered, mouseExited
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicComboPopup.InvocationMouseHandler

protected BasicComboPopup.InvocationMouseHandler()
Creates a new InvocationMouseHandler object.

Method Detail

mousePressed

public void mousePressed(MouseEvent e)
This method is invoked whenever mouse is being pressed over the main part of the combo box. This method will show popup if the popup is not shown on the screen right now, and it will hide popup otherwise.

Specified by:
mousePressed in interface MouseListener
Overrides:
mousePressed in class MouseAdapter
Parameters:
e - MouseEvent that should be handled

mouseReleased

public void mouseReleased(MouseEvent e)
This method is invoked whenever mouse event was originated in the combo box and released either in the combBox list of items or in the combo box itself.

Specified by:
mouseReleased in interface MouseListener
Overrides:
mouseReleased in class MouseAdapter
Parameters:
e - MouseEvent that should be handled