nu.zoom.ldap.eon.directory.attributes
Class AttributesTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
nu.zoom.ldap.eon.directory.attributes.AttributesTableModel
- All Implemented Interfaces:
- Serializable, TableModel
public class AttributesTableModel
- extends AbstractTableModel
Table model to display Attributes.
- Version:
- $Revision: 1.2 $
- Author:
- $Author: johan $
- See Also:
- Serialized Form
| Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AttributesTableModel
public AttributesTableModel(String nameHeader,
String valueHeader)
- Create a new attributes table model
- Parameters:
nameHeader - The column header for the attribute name column.valueHeader - The column header for the attribute value column.
resetModel
public void resetModel(Attributes attrs)
throws NamingException
- Set the model to show the given attributes.
- Parameters:
attrs - The attributes collection to display in the table.
- Throws:
NamingException
getRowCount
public int getRowCount()
getColumnCount
public int getColumnCount()
getValueAt
public Object getValueAt(int rowIndex,
int columnIndex)
getColumnName
public String getColumnName(int column)
- Specified by:
getColumnName in interface TableModel- Overrides:
getColumnName in class AbstractTableModel
getAttributeAt
public Attribute getAttributeAt(int row)
Copyright © 2011. All Rights Reserved.