org.jfree.ui
Class SortableTableHeaderListener
java.lang.Object
org.jfree.ui.SortableTableHeaderListener
- MouseListener, MouseMotionListener
extends java.lang.Object
implements MouseListener, MouseMotionListener
Captures mouse clicks on a table header, with the intention of triggering a sort. Adapted from
code by Nabuo Tamemasa posted on http://www.codeguru.com.
void | mouseClicked(MouseEvent e) - This event is ignored (not required).
|
void | mouseDragged(MouseEvent e) - If the user is dragging or resizing, then we clear the sort column.
|
void | mouseEntered(MouseEvent e) - This event is ignored (not required).
|
void | mouseExited(MouseEvent e) - This event is ignored (not required).
|
void | mouseMoved(MouseEvent e) - This event is ignored (not required).
|
void | mousePressed(MouseEvent e) - Handle a mouse press event - if the user is NOT resizing a column and NOT dragging a column
then give visual feedback that the column header has been pressed.
|
void | mouseReleased(MouseEvent e) - When the user releases the mouse button, we attempt to sort the table.
|
void | setTableModel(SortableTableModel model) - Sets the table model for the listener.
|
mouseClicked
public void mouseClicked(MouseEvent e)
This event is ignored (not required).
mouseDragged
public void mouseDragged(MouseEvent e)
If the user is dragging or resizing, then we clear the sort column.
mouseEntered
public void mouseEntered(MouseEvent e)
This event is ignored (not required).
mouseExited
public void mouseExited(MouseEvent e)
This event is ignored (not required).
mouseMoved
public void mouseMoved(MouseEvent e)
This event is ignored (not required).
mousePressed
public void mousePressed(MouseEvent e)
Handle a mouse press event - if the user is NOT resizing a column and NOT dragging a column
then give visual feedback that the column header has been pressed.
mouseReleased
public void mouseReleased(MouseEvent e)
When the user releases the mouse button, we attempt to sort the table.