public class DatabaseMonitoringTableModel extends SortableTableModel implements Comparator<BackendDescriptor>
listenerList
Constructor and Description |
---|
DatabaseMonitoringTableModel() |
Modifier and Type | Method and Description |
---|---|
int |
compare(BackendDescriptor desc1,
BackendDescriptor desc2) |
void |
forceDataStructureChange()
Updates the table model contents, sorts its contents depending on the
sort options set by the user and updates the column structure.
|
void |
forceResort()
Updates the table model contents and sorts its contents depending on the
sort options set by the user.
|
Collection<String> |
getAttributes()
Returns the fields displayed by this table model.
|
int |
getColumnCount() |
String |
getColumnName(int col) |
int |
getRowCount() |
int |
getSortColumn()
Returns the column index used to sort.
|
Object |
getValueAt(int row,
int col) |
boolean |
isSortAscending()
Returns whether the sort is ascending or descending.
|
void |
setAttributes(Set<String> fields)
Sets the fields displayed by this table model.
|
void |
setData(Set<BackendDescriptor> newData)
Sets the data for this table model.
|
void |
setSortAscending(boolean sortAscending)
Sets whether to sort ascending of descending.
|
void |
setSortColumn(int sortColumn)
Sets the column index used to sort.
|
getHeader, getHeader
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals
public DatabaseMonitoringTableModel()
public void setData(Set<BackendDescriptor> newData)
newData
- the data for this table model.public void forceResort()
forceResort
in class SortableTableModel
public void forceDataStructureChange()
public int getColumnCount()
getColumnCount
in interface TableModel
public int getRowCount()
getRowCount
in interface TableModel
public Object getValueAt(int row, int col)
getValueAt
in interface TableModel
public String getColumnName(int col)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
public int compare(BackendDescriptor desc1, BackendDescriptor desc2)
compare
in interface Comparator<BackendDescriptor>
public boolean isSortAscending()
isSortAscending
in class SortableTableModel
true
if the sort is ascending and false
otherwise.public void setSortAscending(boolean sortAscending)
setSortAscending
in class SortableTableModel
sortAscending
- whether to sort ascending or descending.public int getSortColumn()
getSortColumn
in class SortableTableModel
public void setSortColumn(int sortColumn)
setSortColumn
in class SortableTableModel
sortColumn
- column index used to sort..public Collection<String> getAttributes()
public void setAttributes(Set<String> fields)
fields
- the statistic fields displayed by this table model.Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.