|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.table.AbstractTableModel
org.apache.directory.server.core.partition.impl.btree.gui.AttributesTableModel
A general purpose table model for entry attributes.
Field Summary | |
static java.lang.String |
KEY_COL
name for the key column |
static java.lang.String |
VAL_COL
name for the values column |
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Constructor Summary | |
AttributesTableModel(javax.naming.directory.Attributes entry,
java.math.BigInteger id,
java.lang.String dn,
boolean isMutable)
Creates a table model for entry attributes. |
Method Summary | |
void |
delete(int row)
Deletes a row within the table model. |
java.lang.Class |
getColumnClass(int c)
|
int |
getColumnCount()
|
java.lang.String |
getColumnName(int col)
|
java.lang.String |
getEntryDn()
Gets the distinguished name of the entry. |
java.math.BigInteger |
getEntryId()
Gets the unique id for the entry. |
int |
getRowCount()
|
java.lang.Object |
getValueAt(int row,
int col)
|
void |
insert(int row,
java.lang.Object key,
java.lang.Object val)
Inserts an attribute key/value into the table model. |
boolean |
isCellEditable(int row,
int col)
|
void |
setValue(java.lang.Object val,
int row,
int col)
|
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener, setValueAt |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String KEY_COL
public static final java.lang.String VAL_COL
Constructor Detail |
public AttributesTableModel(javax.naming.directory.Attributes entry, java.math.BigInteger id, java.lang.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 changedMethod Detail |
public java.lang.String getColumnName(int col)
AbstractTableModel.getColumnName(int)
public int getRowCount()
TableModel.getRowCount()
public int getColumnCount()
TableModel.getColumnCount()
public java.lang.Class getColumnClass(int c)
AbstractTableModel.getColumnClass(int)
public boolean isCellEditable(int row, int col)
AbstractTableModel.isCellEditable(int, int)
public java.lang.Object getValueAt(int row, int col)
TableModel.getValueAt(int, int)
public void setValue(java.lang.Object val, int row, int col)
AbstractTableModel.setValueAt(Object, int, int)
public java.lang.String getEntryDn()
public java.math.BigInteger getEntryId()
public void delete(int row)
row
- the row index to deletepublic void insert(int row, java.lang.Object key, java.lang.Object val)
row
- the row index to insert intokey
- the key of the attr to insertval
- the value of the attr to insert
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |