public class BaseDNTableModel extends SortableTableModel implements Comparator<BaseDNDescriptor>
| Modifier and Type | Field and Description |
|---|---|
static String |
NOT_AVAILABLE
Key value to identify the case of a value not available.
|
static String |
NOT_AVAILABLE_AUTHENTICATION_REQUIRED
Key value to identify the case of a value not available because
authentication is required.
|
static String |
NOT_AVAILABLE_SERVER_DOWN
Key value to identify the case of a value not available because the server
is down.
|
listenerList| Constructor and Description |
|---|
BaseDNTableModel(boolean displayReplicationInformation)
Constructor for this table model.
|
BaseDNTableModel(boolean displayReplicationInformation,
boolean wrapHeader)
Constructor for this table model.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(BaseDNDescriptor desc1,
BaseDNDescriptor desc2)
Comparable implementation.
|
void |
forceResort()
Updates the table model contents and sorts its contents depending on the
sort options set by the user.
|
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 |
setData(Set<BaseDNDescriptor> newData,
ServerDescriptor.ServerStatus status,
boolean isAuthenticated)
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 static String NOT_AVAILABLE_SERVER_DOWN
public static String NOT_AVAILABLE_AUTHENTICATION_REQUIRED
public static String NOT_AVAILABLE
public BaseDNTableModel(boolean displayReplicationInformation)
displayReplicationInformation - whether to display replication.
monitoring information or not.public BaseDNTableModel(boolean displayReplicationInformation, boolean wrapHeader)
displayReplicationInformation - whether to display replication.wrapHeader - whether to wrap the headers or not.
monitoring information or not.public void setData(Set<BaseDNDescriptor> newData, ServerDescriptor.ServerStatus status, boolean isAuthenticated)
newData - the data for this table model.status - the server status.isAuthenticated - whether the user provided authentication or not.public void forceResort()
forceResort in class SortableTableModelpublic int compare(BaseDNDescriptor desc1, BaseDNDescriptor desc2)
compare in interface Comparator<BaseDNDescriptor>desc1 - the first replica descriptor to compare.desc2 - the second replica descriptor to compare.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 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..Copyright © 2010-2015 ForgeRock AS. All Rights Reserved.