This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.swing.plaf.basic
class BasicMenuUI.MouseInputHandler

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

protected class BasicMenuUI.MouseInputHandler
extends Object
implements MouseInputListener

Instantiated and used by a menu item to handle the current menu selection from mouse events. A MouseInputHandler processes and forwards all mouse events to a shared instance of the MenuSelectionManager.

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.


Constructor Summary
protected

          
 
Method Summary
 void

          
 void

          Invoked when a mouse button is pressed on the menu and then dragged.
 void

          Invoked when the cursor enters the menu.
 void

          
 void

          
 void

          Invoked when the mouse has been clicked on the menu.
 void

          Invoked when the mouse has been released on the menu.
 
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)
Parameters:
e

mouseDragged

public void mouseDragged(MouseEvent e)
Invoked when a mouse button is pressed on the menu and then dragged. Delegates the mouse event to the MenuSelectionManager.

Parameters:
e - the mouse event

mouseEntered

public void mouseEntered(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.

Parameters:
e - the mouse event; not used

mouseExited

public void mouseExited(MouseEvent e)
Parameters:
e

mouseMoved

public void mouseMoved(MouseEvent e)
Parameters:
e

mousePressed

public void mousePressed(MouseEvent e)
Invoked when the mouse has been clicked on the menu. This method clears or sets the selection path of the MenuSelectionManager.

Parameters:
e - the mouse event

mouseReleased

public void mouseReleased(MouseEvent e)
Invoked when the mouse has been released on the menu. Delegates the mouse event to the MenuSelectionManager.

Parameters:
e - the mouse event


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.