public class TableSorter extends Object
Constructor and Description |
---|
TableSorter(Table table)
Constructs the table sorter and specifies column comparators.
|
Modifier and Type | Method and Description |
---|---|
void |
handleEvent(Event event)
Sorts the list on the selected column.
|
void |
setComparator(int index,
Comparator<Object> comparator)
Sets the comparator for a column index.
|
public TableSorter(Table table)
table
- The table.public void setComparator(int index, Comparator<Object> comparator)
index
- The column index.comparator
- The comparator.public void handleEvent(Event event)
event
- Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2023. All rights reserved.