public class

TableSorter

extends DefaultTableModel
implements MouseListener
java.lang.Object
   ↳ javax.swing.table.AbstractTableModel
     ↳ javax.swing.table.DefaultTableModel
       ↳ sun.tools.jconsole.inspector.TableSorter

Summary

[Expand]
Inherited Fields
From class javax.swing.table.DefaultTableModel
From class javax.swing.table.AbstractTableModel
Public Constructors
TableSorter()
TableSorter(Object[] columnNames, int numRows)
Public Methods
void addMouseListenerToHeaderInTable(JTable table)
void addTableModelListener(TableModelListener l)
Adds a listener to the list that's notified each time a change to the data model occurs.
int compare(Object o1, Object o2)
int[] getInvertedIndex()
void mouseClicked(MouseEvent e)
Invoked when the mouse button has been clicked (pressed and released) on a component.
void mouseEntered(MouseEvent e)
Invoked when the mouse enters a component.
void mouseExited(MouseEvent e)
Invoked when the mouse exits a component.
void mousePressed(MouseEvent e)
Invoked when a mouse button has been pressed on a component.
void mouseReleased(MouseEvent e)
Invoked when a mouse button has been released on a component.
void n2sort(int column)
void newDataAvailable(TableModelEvent e)
Equivalent to fireTableChanged.
void removeTableModelListener(TableModelListener l)
Removes a listener from the list that's notified each time a change to the data model occurs.
void sort(int column)
void sortByColumn(int column)
void sortByColumn(int column, boolean ascending)
void swap(int i, int j, int column)
[Expand]
Inherited Methods
From class javax.swing.table.DefaultTableModel
From class javax.swing.table.AbstractTableModel
From class java.lang.Object
From interface java.awt.event.MouseListener
From interface javax.swing.table.TableModel

Public Constructors

public TableSorter ()

public TableSorter (Object[] columnNames, int numRows)

Public Methods

public void addMouseListenerToHeaderInTable (JTable table)

public void addTableModelListener (TableModelListener l)

Adds a listener to the list that's notified each time a change to the data model occurs.

Parameters
l the TableModelListener

public int compare (Object o1, Object o2)

public int[] getInvertedIndex ()

public void mouseClicked (MouseEvent e)

Invoked when the mouse button has been clicked (pressed and released) on a component.

public void mouseEntered (MouseEvent e)

Invoked when the mouse enters a component.

public void mouseExited (MouseEvent e)

Invoked when the mouse exits a component.

public void mousePressed (MouseEvent e)

Invoked when a mouse button has been pressed on a component.

public void mouseReleased (MouseEvent e)

Invoked when a mouse button has been released on a component.

public void n2sort (int column)

public void newDataAvailable (TableModelEvent e)

Equivalent to fireTableChanged.

Parameters
e the change event

public void removeTableModelListener (TableModelListener l)

Removes a listener from the list that's notified each time a change to the data model occurs.

Parameters
l the TableModelListener

public void sort (int column)

public void sortByColumn (int column)

public void sortByColumn (int column, boolean ascending)

public void swap (int i, int j, int column)