javax.swing.plaf.basic

Class BasicTableHeaderUI.MouseInputHandler

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.
Method Summary
voidmouseClicked(MouseEvent e)
Returns without action, part of the MouseInputListener interface.
voidmouseDragged(MouseEvent e)
If being in the resizing mode, handle resizing.
voidmouseEntered(MouseEvent e)
Returns without action, part of the MouseInputListener interface.
voidmouseExited(MouseEvent e)
Reset drag information of the column resizing.
voidmouseMoved(MouseEvent e)
Change the mouse cursor if the mouse if above the column boundary.
voidmousePressed(MouseEvent e)
Starts the dragging/resizing procedure.
voidmouseReleased(MouseEvent e)
Set all column preferred width to the current width to prevend abrupt width changes during the next resize.

Method Detail

mouseClicked

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

mouseDragged

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

mouseEntered

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

mouseExited

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

mouseMoved

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

mousePressed

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

mouseReleased

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