javax.swing.plaf.basic
Class BasicTableHeaderUI.MouseInputHandler

java.lang.Object
  extended by javax.swing.plaf.basic.BasicTableHeaderUI.MouseInputHandler
All Implemented Interfaces:
MouseListener, MouseMotionListener, EventListener, MouseInputListener
Enclosing class:
BasicTableHeaderUI

public class BasicTableHeaderUI.MouseInputHandler
extends Object
implements MouseInputListener

Handles column movement and rearrangement by mouse. The same instance works both as mouse listener and the mouse motion listner.


Constructor Summary
BasicTableHeaderUI.MouseInputHandler()
           
 
Method Summary
 void mouseClicked(MouseEvent e)
          Returns without action, part of the MouseInputListener interface.
 void mouseDragged(MouseEvent e)
          If being in the resizing mode, handle resizing.
 void mouseEntered(MouseEvent e)
          Returns without action, part of the MouseInputListener interface.
 void mouseExited(MouseEvent e)
          Reset drag information of the column resizing.
 void mouseMoved(MouseEvent e)
          Change the mouse cursor if the mouse if above the column boundary.
 void mousePressed(MouseEvent e)
          Starts the dragging/resizing procedure.
 void mouseReleased(MouseEvent e)
          Set all column preferred width to the current width to prevend abrupt width changes during the next resize.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicTableHeaderUI.MouseInputHandler

public BasicTableHeaderUI.MouseInputHandler()
Method Detail

mouseClicked

public void mouseClicked(MouseEvent e)
Returns without action, part of the MouseInputListener interface.

Specified by:
mouseClicked in interface MouseListener
Parameters:
e - the MouseEvent indicating the click

mouseDragged

public void mouseDragged(MouseEvent e)
If being in the resizing mode, handle resizing.

Specified by:
mouseDragged in interface MouseMotionListener
Parameters:
e - the MouseEvent indicating the motion

mouseEntered

public void mouseEntered(MouseEvent e)
Returns without action, part of the MouseInputListener interface.

Specified by:
mouseEntered in interface MouseListener
Parameters:
e - the MouseEvent for the entry

mouseExited

public void mouseExited(MouseEvent e)
Reset drag information of the column resizing.

Specified by:
mouseExited in interface MouseListener
Parameters:
e - the MouseEvent for the exit

mouseMoved

public void mouseMoved(MouseEvent e)
Change the mouse cursor if the mouse if above the column boundary.

Specified by:
mouseMoved in interface MouseMotionListener
Parameters:
e - the MouseEvent indicating the motion

mousePressed

public void mousePressed(MouseEvent e)
Starts the dragging/resizing procedure.

Specified by:
mousePressed in interface MouseListener
Parameters:
e - the MouseEvent for the press

mouseReleased

public void mouseReleased(MouseEvent e)
Set all column preferred width to the current width to prevend abrupt width changes during the next resize.

Specified by:
mouseReleased in interface MouseListener
Parameters:
e - the MouseEvent for the release