javax.swing.plaf.basic
Class BasicScrollBarUI.ArrowButtonListener

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

protected class BasicScrollBarUI.ArrowButtonListener
extends MouseAdapter

A helper class that listens to the two JButtons on each end of the JScrollBar.


Constructor Summary
protected BasicScrollBarUI.ArrowButtonListener()
           
 
Method Summary
 void mousePressed(MouseEvent e)
          Move the thumb in the direction specified by the button's arrow.
 void mouseReleased(MouseEvent e)
          Stops the thumb when the JButton is released.
 
Methods inherited from class java.awt.event.MouseAdapter
mouseClicked, mouseEntered, mouseExited
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicScrollBarUI.ArrowButtonListener

protected BasicScrollBarUI.ArrowButtonListener()
Method Detail

mousePressed

public void mousePressed(MouseEvent e)
Move the thumb in the direction specified by the button's arrow. If this button is held down, then it should keep moving the thumb.

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

mouseReleased

public void mouseReleased(MouseEvent e)
Stops the thumb when the JButton is released.

Specified by:
mouseReleased in interface MouseListener
Overrides:
mouseReleased in class MouseAdapter
Parameters:
e - The MouseEvent fired by the JButton.