public class DBEnvironmentMonitoringTableModel extends SortableTableModel implements Comparator<BackendDescriptor>
listenerList| Constructor and Description |
|---|
DBEnvironmentMonitoringTableModel() |
| 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 operations displayed by this table model.
|
int |
getColumnCount() |
String |
getColumnName(int col) |
protected CustomSearchResult |
getMonitoringEntry(BackendDescriptor backend)
Returns the monitoring entry associated with the provided backend.
|
protected String |
getName(BackendDescriptor backend)
Returns the label to be used for the provided backend.
|
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(LinkedHashSet<String> operations)
Sets the operations 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, getHeaderaddTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAtclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic DBEnvironmentMonitoringTableModel()
public void setData(Set<BackendDescriptor> newData)
newData - the data for this table model.public void forceResort()
forceResort in class SortableTableModelpublic void forceDataStructureChange()
public int getColumnCount()
getColumnCount in interface TableModelpublic int getRowCount()
getRowCount in interface TableModelpublic Object getValueAt(int row, int col)
getValueAt in interface TableModelpublic String getColumnName(int col)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelpublic int compare(BackendDescriptor desc1, BackendDescriptor desc2)
compare in interface Comparator<BackendDescriptor>public boolean isSortAscending()
isSortAscending in class SortableTableModeltrue if the sort is ascending and false
otherwise.public void setSortAscending(boolean sortAscending)
setSortAscending in class SortableTableModelsortAscending - whether to sort ascending or descending.public int getSortColumn()
getSortColumn in class SortableTableModelpublic void setSortColumn(int sortColumn)
setSortColumn in class SortableTableModelsortColumn - column index used to sort..public Collection<String> getAttributes()
public void setAttributes(LinkedHashSet<String> operations)
operations - the operations displayed by this table model.protected String getName(BackendDescriptor backend)
backend - the backend.protected CustomSearchResult getMonitoringEntry(BackendDescriptor backend)
backend - the backend.null if there is no monitoring entry associated.Copyright © 2010-2015 ForgeRock AS. All Rights Reserved.