javax.swing.plaf.basic
Class BasicTabbedPaneUI.MouseHandler

java.lang.Object
  extended by java.awt.event.MouseAdapter
      extended by javax.swing.plaf.basic.BasicTabbedPaneUI.MouseHandler
All Implemented Interfaces:
MouseListener, EventListener
Enclosing class:
BasicTabbedPaneUI

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.


Constructor Summary
BasicTabbedPaneUI.MouseHandler()
           
 
Method Summary
 void mouseEntered(MouseEvent e)
          Receives notification when the mouse pointer has entered the tabbed pane.
 void mouseExited(MouseEvent e)
          Receives notification when the mouse pointer has exited the tabbed pane.
 void mouseMoved(MouseEvent ev)
          Receives notification when the mouse pointer has moved over the tabbed pane.
 void mousePressed(MouseEvent e)
          This method is called when the mouse is pressed.
 void mouseReleased(MouseEvent e)
          Implements this method in the interface with an empty method body.
 
Methods inherited from class java.awt.event.MouseAdapter
mouseClicked
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicTabbedPaneUI.MouseHandler

public BasicTabbedPaneUI.MouseHandler()
Method Detail

mouseReleased

public void mouseReleased(MouseEvent e)
Description copied from class: MouseAdapter
Implements this method in the interface with an empty method body.

Specified by:
mouseReleased in interface MouseListener
Overrides:
mouseReleased in class MouseAdapter
Parameters:
e - the event, ignored in this implementation

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.

Specified by:
mousePressed in interface MouseListener
Overrides:
mousePressed in class MouseAdapter
Parameters:
e - The MouseEvent.

mouseEntered

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

Specified by:
mouseEntered in interface MouseListener
Overrides:
mouseEntered in class MouseAdapter
Parameters:
e - the mouse event

mouseExited

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

Specified by:
mouseExited in interface MouseListener
Overrides:
mouseExited in class MouseAdapter
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