public class SortableTableHeaderListener extends Object implements MouseListener, MouseMotionListener
| Constructor and Description |
|---|
SortableTableHeaderListener(SortableTableModel model,
SortButtonRenderer renderer)
Standard constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public SortableTableHeaderListener(SortableTableModel model, SortButtonRenderer renderer)
model - the model.renderer - the renderer.public void setTableModel(SortableTableModel model)
model - the model.public void mousePressed(MouseEvent e)
mousePressed in interface MouseListenere - the mouse event.public void mouseDragged(MouseEvent e)
mouseDragged in interface MouseMotionListenere - the mouse event.public void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenere - the mouse event.public void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenere - the mouse event.public void mouseMoved(MouseEvent e)
mouseMoved in interface MouseMotionListenere - the mouse event.public void mouseExited(MouseEvent e)
mouseExited in interface MouseListenere - the mouse event.public void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenere - the mouse event.Copyright © 2009-2012 jtstand.com. All Rights Reserved.