nu.zoom.ldap.eon.directory.attributes
Class AttributesTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by 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

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
AttributesTableModel(String nameHeader, String valueHeader)
          Create a new attributes table model
 
Method Summary
 Attribute getAttributeAt(int row)
           
 int getColumnCount()
           
 String getColumnName(int column)
           
 int getRowCount()
           
 Object getValueAt(int rowIndex, int columnIndex)
           
 void resetModel(Attributes attrs)
          Set the model to show the given attributes.
 
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
 

Constructor Detail

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.
Method Detail

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.