javax.swing.plaf.basic

Class BasicTabbedPaneUI.MouseHandler

public class BasicTabbedPaneUI.MouseHandler extends MouseAdapter

A helper class for determining if mouse presses occur inside tabs and sets the index appropriately. In SCROLL_TAB_MODE, this class also handles the mouse clicks on the scrolling buttons.

UNKNOWN: Apparently this class was intended to be protected, but was made public by a compiler bug and is now public for compatibility.

Method Summary
voidmouseEntered(MouseEvent e)
Receives notification when the mouse pointer has entered the tabbed pane.
voidmouseExited(MouseEvent e)
Receives notification when the mouse pointer has exited the tabbed pane.
voidmouseMoved(MouseEvent ev)
Receives notification when the mouse pointer has moved over the tabbed pane.
voidmousePressed(MouseEvent e)
This method is called when the mouse is pressed.
voidmouseReleased(MouseEvent e)

Method Detail

mouseEntered

public void mouseEntered(MouseEvent e)
Receives notification when the mouse pointer has entered the tabbed pane.

Parameters: e the mouse event

mouseExited

public void mouseExited(MouseEvent e)
Receives notification when the mouse pointer has exited the tabbed pane.

Parameters: e the mouse event

mouseMoved

public void mouseMoved(MouseEvent ev)
Receives notification when the mouse pointer has moved over the tabbed pane.

Parameters: ev the mouse event

mousePressed

public void mousePressed(MouseEvent e)
This method is called when the mouse is pressed. The index cannot change to a tab that is not enabled.

Parameters: e The MouseEvent.

mouseReleased

public void mouseReleased(MouseEvent e)