protected class BasicMenuUI.MouseInputHandler extends Objectimplements MouseInputListener
This class is protected so that it can be subclassed by other look and feels to implement their own mouse handling behavior. All overridden methods should call the parent methods so that the menu selection is correct.
MenuSelectionManager
| Modifier | Constructor and Description |
|---|---|
protected |
MouseInputHandler()
|
| Modifier and Type | Method and Description |
|---|---|
void |
mouseClicked(MouseEvent
Invoked when the mouse button has been clicked (pressed and released) on a component.
|
void |
mouseDragged(MouseEvent
Invoked when a mouse button is pressed on the menu and then dragged.
|
void |
mouseEntered(MouseEvent
Invoked when the cursor enters the menu.
|
void |
mouseExited(MouseEvent
Invoked when the mouse exits a component.
|
void |
mouseMoved(MouseEvent
Invoked when the mouse cursor has been moved onto a component but no buttons have been pushed.
|
void |
mousePressed(MouseEvent
Invoked when the mouse has been clicked on the menu.
|
void |
mouseReleased(MouseEvent
Invoked when the mouse has been released on the menu.
|
public void mouseClicked(MouseEvente)
MouseListener
public void mousePressed(MouseEvente)
mousePressed in interface
MouseListener
e - the mouse event
public void mouseReleased(MouseEvente)
mouseReleased in interface
MouseListener
e - the mouse event
public void mouseEntered(MouseEvente)
mouseEntered in interface
MouseListener
e - the mouse event; not used
public void mouseExited(MouseEvente)
MouseListener
public void mouseDragged(MouseEvente)
mouseDragged in interface
MouseMotionListener
e - the mouse event
MouseMotionListener.mouseDragged(java.awt.event.MouseEvent)
public void mouseMoved(MouseEvente)
MouseMotionListener