javax.swing.plaf.basic
Class BasicMenuUI.MouseInputHandler

java.lang.Object
  extended by javax.swing.plaf.basic.BasicMenuUI.MouseInputHandler
All Implemented Interfaces:
MouseListener, MouseMotionListener, EventListener, MouseInputListener
Enclosing class:
BasicMenuUI

protected class BasicMenuUI.MouseInputHandler
extends Object
implements MouseInputListener

This class is used by menus to handle mouse events occuring in the menu.


Constructor Summary
protected BasicMenuUI.MouseInputHandler()
           
 
Method Summary
 void mouseClicked(MouseEvent e)
          This method is called when the mouse is clicked (pressed and released in short succession) on a component.
 void mouseDragged(MouseEvent e)
          This method is called when the mouse is moved over a component while a button has been pressed.
 void mouseEntered(MouseEvent e)
          This method is called when the mouse enters a component.
 void mouseExited(MouseEvent e)
          This method is called when the mouse exits a component.
 void mouseMoved(MouseEvent e)
          This method is called when the mouse is moved over a component while no button is pressed.
 void mousePressed(MouseEvent e)
          This method is called when the mouse is pressed over a component.
 void mouseReleased(MouseEvent e)
          This method is called when the mouse is released over a component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicMenuUI.MouseInputHandler

protected BasicMenuUI.MouseInputHandler()
Method Detail

mouseClicked

public void mouseClicked(MouseEvent e)
Description copied from interface: MouseListener
This method is called when the mouse is clicked (pressed and released in short succession) on a component.

Specified by:
mouseClicked in interface MouseListener
Parameters:
e - the MouseEvent indicating the click

mouseDragged

public void mouseDragged(MouseEvent e)
Description copied from interface: MouseMotionListener
This method is called when the mouse is moved over a component while a button has been pressed.

Specified by:
mouseDragged in interface MouseMotionListener
Parameters:
e - the MouseEvent indicating the motion

mouseEntered

public void mouseEntered(MouseEvent e)
Description copied from interface: MouseListener
This method is called when the mouse enters a component.

Specified by:
mouseEntered in interface MouseListener
Parameters:
e - the MouseEvent for the entry

mouseExited

public void mouseExited(MouseEvent e)
Description copied from interface: MouseListener
This method is called when the mouse exits a component.

Specified by:
mouseExited in interface MouseListener
Parameters:
e - the MouseEvent for the exit

mouseMoved

public void mouseMoved(MouseEvent e)
Description copied from interface: MouseMotionListener
This method is called when the mouse is moved over a component while no button is pressed.

Specified by:
mouseMoved in interface MouseMotionListener
Parameters:
e - the MouseEvent indicating the motion

mousePressed

public void mousePressed(MouseEvent e)
Description copied from interface: MouseListener
This method is called when the mouse is pressed over a component.

Specified by:
mousePressed in interface MouseListener
Parameters:
e - the MouseEvent for the press

mouseReleased

public void mouseReleased(MouseEvent e)
Description copied from interface: MouseListener
This method is called when the mouse is released over a component.

Specified by:
mouseReleased in interface MouseListener
Parameters:
e - the MouseEvent for the release