public class AttributesTableModel extends AbstractTableModel
Modifier and Type | Field and Description |
---|---|
static String |
KEY_COL
name for the key column
|
static String |
VAL_COL
name for the values column
|
listenerList
Constructor and Description |
---|
AttributesTableModel(org.apache.directory.shared.ldap.entry.ServerEntry entry,
Long id,
String dn,
boolean isMutable)
Creates a table model for entry attributes.
|
Modifier and Type | Method and Description |
---|---|
void |
delete(int row)
Deletes a row within the table model.
|
Class<String> |
getColumnClass(int c) |
int |
getColumnCount() |
String |
getColumnName(int col) |
String |
getEntryDn()
Gets the distinguished name of the entry.
|
Long |
getEntryId()
Gets the unique id for the entry.
|
int |
getRowCount() |
Object |
getValueAt(int row,
int col) |
void |
insert(int row,
Object key,
Object val)
Inserts an attribute key/value into the table model.
|
boolean |
isCellEditable(int row,
int col) |
void |
setValue(Object val,
int row,
int col) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener, setValueAt
public static final String KEY_COL
public static final String VAL_COL
public AttributesTableModel(org.apache.directory.shared.ldap.entry.ServerEntry entry, Long id, String dn, boolean isMutable)
entry
- the entry to create a model forid
- the id for the entrydn
- the distinguished name of the entryisMutable
- whether or not the model can be changedpublic String getColumnName(int col)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
AbstractTableModel.getColumnName(int)
public int getRowCount()
TableModel.getRowCount()
public int getColumnCount()
TableModel.getColumnCount()
public Class<String> getColumnClass(int c)
getColumnClass
in interface TableModel
getColumnClass
in class AbstractTableModel
AbstractTableModel.getColumnClass(int)
public boolean isCellEditable(int row, int col)
isCellEditable
in interface TableModel
isCellEditable
in class AbstractTableModel
AbstractTableModel.isCellEditable(int, int)
public Object getValueAt(int row, int col)
TableModel.getValueAt(int, int)
public void setValue(Object val, int row, int col)
public String getEntryDn()
public Long getEntryId()
public void delete(int row)
row
- the row index to deleteCopyright © 2003-2013 Apache Software Foundation. All Rights Reserved.