|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ComparatorTableModel
This adds a method to TableModel
that may be used to retrieve
Comparator
s which should be used to sort the values of columns.
TableModel
,
Comparator
Method Summary | |
---|---|
java.util.Comparator<?> |
getComparator(int columnIndex)
Returns a Comparator that can be used to compare two Objects
in this TableModel s column columnIndex . |
Methods inherited from interface javax.swing.table.TableModel |
---|
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt |
Method Detail |
---|
java.util.Comparator<?> getComparator(int columnIndex)
Comparator
that can be used to compare two Objects
in this TableModel
s column columnIndex
.
columnIndex
- the column number we need a Comparator
for.
Comparator
or null
if there is no
Comparator
for this column.Comparator
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |