public abstract class SortableTableModel extends AbstractTableModel
listenerList| Constructor and Description |
|---|
SortableTableModel() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
forceResort()
Updates the table model contents and sorts its contents depending on the
sort options set by the user.
|
protected String |
getHeader(LocalizableMessage msg)
Returns the header wrapped with the default line width.
|
protected String |
getHeader(LocalizableMessage msg,
int wrap)
Returns the header wrapped with a certain line width.
|
abstract int |
getSortColumn()
Returns the column index used to sort.
|
abstract boolean |
isSortAscending()
Returns whether the sort is ascending or descending.
|
abstract void |
setSortAscending(boolean sortAscending)
Sets whether to sort ascending of descending.
|
abstract void |
setSortColumn(int sortColumn)
Sets the column index used to sort.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAtclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetColumnCount, getRowCount, getValueAtpublic SortableTableModel()
public abstract boolean isSortAscending()
true if the sort is ascending and false
otherwise.public abstract void setSortAscending(boolean sortAscending)
sortAscending - whether to sort ascending or descending.public abstract int getSortColumn()
public abstract void setSortColumn(int sortColumn)
sortColumn - column index used to sort..public abstract void forceResort()
protected String getHeader(LocalizableMessage msg)
msg - the header message value (with no HTML formatting).protected String getHeader(LocalizableMessage msg, int wrap)
msg - the header message value (with no HTML formatting).wrap - the maximum line width before wrapping.Copyright © 2010-2015 ForgeRock AS. All Rights Reserved.