Modifier and Type | Field and Description |
---|---|
private boolean | |
private TableColumnModel | |
private Vector | |
private int[] | |
private int | |
private JTable |
Access | Constructor and Description |
---|---|
public | |
public |
Modifier and Type | Method and Description |
---|---|
public void | |
public void | addTableModelListener(TableModelListener
the TableModelListener l)Overrides javax. Implements javax. |
private int | |
private boolean | |
private boolean | |
public int | |
private Vector | |
public void | mouseClicked(MouseEvent
the event to be processed e)Implements java. |
public void | mouseEntered(MouseEvent
the event to be processed e)Implements java. |
public void | mouseExited(MouseEvent
the event to be processed e)Implements java. |
public void | mousePressed(MouseEvent
the event to be processed e)Implements java. |
public void | mouseReleased(MouseEvent
the event to be processed e)Implements java. |
public void | newDataAvailable(TableModelEvent
the change event e)Overrides javax. fireTableChanged .
|
private void | |
private void | |
public void | removeTableModelListener(TableModelListener
the TableModelListener l)Overrides javax. Implements javax. |
private void | |
private void | |
private void | |
public void | |
public void | |
private void |
ascending | back to summary |
---|---|
private boolean ascending |
columnModel | back to summary |
---|---|
private TableColumnModel columnModel |
evtListenerList | back to summary |
---|---|
private Vector<TableModelListener> evtListenerList |
invertedIndex | back to summary |
---|---|
private int[] invertedIndex |
sortColumn | back to summary |
---|---|
private int sortColumn |
tableView | back to summary |
---|---|
private JTable tableView |
TableSorter | back to summary |
---|---|
public TableSorter() |
TableSorter | back to summary |
---|---|
public TableSorter(Object[] columnNames, int numRows) |
addMouseListenerToHeaderInTable | back to summary |
---|---|
public void addMouseListenerToHeaderInTable(JTable table) |
addTableModelListener | back to summary |
---|---|
public void addTableModelListener(TableModelListener l) Overrides javax. Implements javax. Doc from javax. Adds a listener to the list that's notified each time a change to the data model occurs.
|
compare | back to summary |
---|---|
private int compare(Object o1, Object o2)
|
compareG | back to summary |
---|---|
private boolean compareG(Object s1, Object s2, boolean isAscending) |
compareS | back to summary |
---|---|
private boolean compareS(Object s1, Object s2, boolean isAscending) |
getIndexOfRow | back to summary |
---|---|
public int getIndexOfRow(int row) |
getRow | back to summary |
---|---|
private Vector |
mouseClicked | back to summary |
---|---|
public void mouseClicked(MouseEvent e) Implements java. Doc from java. Invoked when the mouse button has been clicked (pressed and released) on a component.
|
mouseEntered | back to summary |
---|---|
public void mouseEntered(MouseEvent e) Implements java. Doc from java. Invoked when the mouse enters a component.
|
mouseExited | back to summary |
---|---|
public void mouseExited(MouseEvent e) Implements java. Doc from java. Invoked when the mouse exits a component.
|
mousePressed | back to summary |
---|---|
public void mousePressed(MouseEvent e) Implements java. Doc from java. Invoked when a mouse button has been pressed on a component.
|
mouseReleased | back to summary |
---|---|
public void mouseReleased(MouseEvent e) Implements java. Doc from java. Invoked when a mouse button has been released on a component.
|
newDataAvailable | back to summary |
---|---|
public void newDataAvailable(TableModelEvent e) Overrides javax. Doc from javax. Equivalent to
|
quickSort | back to summary |
---|---|
private void quickSort(int lo0, int hi0, int key, boolean isAscending) |
removeListeners | back to summary |
---|---|
private void removeListeners() |
removeTableModelListener | back to summary |
---|---|
public void removeTableModelListener(TableModelListener l) Overrides javax. Implements javax. Doc from javax. Removes a listener from the list that's notified each time a change to the data model occurs.
|
restoreListeners | back to summary |
---|---|
private void restoreListeners() |
setRow | back to summary |
---|---|
private void setRow(Vector<?> data, int row)
|
sort | back to summary |
---|---|
private void sort(int column, boolean isAscending) |
sortByColumn | back to summary |
---|---|
public void sortByColumn(int column) |
sortByColumn | back to summary |
---|---|
public void sortByColumn(int column, boolean ascending) |
swap | back to summary |
---|---|
private void swap(int i, int j, int column) |