| Modifier and Type | Field and Description |
|---|---|
| private TableModelComparator | |
| protected List | elements
All the rows are stored as a List. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public boolean | |
| public void | |
| public void |
| comparator | back to summary |
|---|---|
| private TableModelComparator comparator | |
| elements | back to summary |
|---|---|
| protected List<T> elements All the rows are stored as a List. | |
| SortableTableModel | back to summary |
|---|---|
| public SortableTableModel() | |
| getColumn | back to summary |
|---|---|
| public int getColumn() | |
| isAscending | back to summary |
|---|---|
| public boolean isAscending() | |
| setComparator | back to summary |
|---|---|
| public void setComparator(TableModelComparator comparator) This comparator must be set. | |
| sortByColumn | back to summary |
|---|---|
| public void sortByColumn(int column, boolean ascending) | |