Package com.jidesoft.plaf.basic
Class BasicJideSplitButtonUI.MouseInputHandler
- java.lang.Object
-
- com.jidesoft.plaf.basic.BasicJideSplitButtonUI.MouseInputHandler
-
- All Implemented Interfaces:
java.awt.event.MouseListener
,java.awt.event.MouseMotionListener
,java.util.EventListener
,javax.swing.event.MouseInputListener
- Enclosing class:
- BasicJideSplitButtonUI
protected class BasicJideSplitButtonUI.MouseInputHandler extends java.lang.Object implements javax.swing.event.MouseInputListener
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
MouseInputHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
mouseClicked(java.awt.event.MouseEvent e)
void
mouseDragged(java.awt.event.MouseEvent e)
Invoked when a mouse button is pressed on the menu and then dragged.void
mouseEntered(java.awt.event.MouseEvent e)
Invoked when the cursor enters the menu.void
mouseExited(java.awt.event.MouseEvent e)
void
mouseMoved(java.awt.event.MouseEvent e)
void
mousePressed(java.awt.event.MouseEvent e)
Invoked when the mouse has been clicked on the menu.void
mouseReleased(java.awt.event.MouseEvent e)
Invoked when the mouse has been released on the menu.
-
-
-
Method Detail
-
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent e)
- Specified by:
mouseClicked
in interfacejava.awt.event.MouseListener
-
mousePressed
public void mousePressed(java.awt.event.MouseEvent e)
Invoked when the mouse has been clicked on the menu. This method clears or sets the selection path of the MenuSelectionManager.- Specified by:
mousePressed
in interfacejava.awt.event.MouseListener
- Parameters:
e
- the mouse event
-
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent e)
Invoked when the mouse has been released on the menu. Delegates the mouse event to the MenuSelectionManager.- Specified by:
mouseReleased
in interfacejava.awt.event.MouseListener
- Parameters:
e
- the mouse event
-
mouseEntered
public void mouseEntered(java.awt.event.MouseEvent e)
Invoked when the cursor enters the menu. This method sets the selected path for the MenuSelectionManager and handles the case in which a menu item is used to pop up an additional menu, as in a hierarchical menu system.- Specified by:
mouseEntered
in interfacejava.awt.event.MouseListener
- Parameters:
e
- the mouse event; not used
-
mouseExited
public void mouseExited(java.awt.event.MouseEvent e)
- Specified by:
mouseExited
in interfacejava.awt.event.MouseListener
-
mouseDragged
public void mouseDragged(java.awt.event.MouseEvent e)
Invoked when a mouse button is pressed on the menu and then dragged. Delegates the mouse event to the MenuSelectionManager.- Specified by:
mouseDragged
in interfacejava.awt.event.MouseMotionListener
- Parameters:
e
- the mouse event- See Also:
MouseMotionListener.mouseDragged(java.awt.event.MouseEvent)
-
mouseMoved
public void mouseMoved(java.awt.event.MouseEvent e)
- Specified by:
mouseMoved
in interfacejava.awt.event.MouseMotionListener
-
-