protected class TableViewEntryPanel.LDAPEntryTableModel extends SortableTableModel implements Comparator<org.opends.guitools.controlpanel.ui.TableViewEntryPanel.AttributeValuePair>
listenerList
Modifier | Constructor and Description |
---|---|
protected |
TableViewEntryPanel.LDAPEntryTableModel() |
Modifier and Type | Method and Description |
---|---|
int |
compare(org.opends.guitools.controlpanel.ui.TableViewEntryPanel.AttributeValuePair desc1,
org.opends.guitools.controlpanel.ui.TableViewEntryPanel.AttributeValuePair desc2) |
void |
displayEntry()
Updates the contents of the table model with the
TableViewEntryPanel.searchResult object. |
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) |
List<Object> |
getValues(String attrName)
Returns the list of values associated with a given attribute.
|
boolean |
isCellEditable(int row,
int col) |
boolean |
isSortAscending()
Returns whether the sort is ascending or descending.
|
void |
setSortAscending(boolean sortAscending)
Sets whether to sort ascending of descending.
|
void |
setSortColumn(int sortColumn)
Sets the column index used to sort.
|
void |
setValueAt(Object value,
int row,
int col) |
getHeader, getHeader
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals
protected TableViewEntryPanel.LDAPEntryTableModel()
public void displayEntry()
TableViewEntryPanel.searchResult
object.public void forceResort()
forceResort
in class SortableTableModel
public int compare(org.opends.guitools.controlpanel.ui.TableViewEntryPanel.AttributeValuePair desc1, org.opends.guitools.controlpanel.ui.TableViewEntryPanel.AttributeValuePair desc2)
compare
in interface Comparator<org.opends.guitools.controlpanel.ui.TableViewEntryPanel.AttributeValuePair>
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 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 boolean isCellEditable(int row, int col)
isCellEditable
in interface TableModel
isCellEditable
in class AbstractTableModel
public void setValueAt(Object value, int row, int col)
setValueAt
in interface TableModel
setValueAt
in class AbstractTableModel
Copyright © 2010-2016 ForgeRock AS. All Rights Reserved.