|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--javax.swing.table.AbstractTableModel
|
+--com.ca.directory.jxplorer.viewer.tableviewer.AttributeTableModel
| Field Summary | |
protected boolean |
dataChanged
|
| Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
| Constructor Summary | |
AttributeTableModel()
|
|
| Method Summary | |
void |
addAttribute(java.lang.String ID,
AttributeValue val,
int type)
|
void |
addAttribute(java.lang.String ID,
AttributeValue val,
int type,
int indexPos)
|
void |
addNamingComponent(AttributeType currentType,
AttributeValue currentValue)
|
boolean |
changedByUser()
This returns whether the table data has been modified since the original display of the entry. |
boolean |
checkMandatoryAttributesSet()
Checks that all mandatory attributes have at least one value entered. |
void |
clear()
Removes all data leaving an empty table. |
void |
deleteAttribute(java.lang.String ID,
int indexPos)
|
void |
dumpNamingArrays()
|
void |
fireChange()
|
javax.naming.directory.Attribute |
getAttribute(java.lang.String ID)
Reads all the values for a given attribute from the table. |
java.lang.Class |
getColumnClass(int c)
Returns the class of the objects in the different columns: AttributeType.class for col 0, AttributeValue.class for col 1. |
int |
getColumnCount()
Returns number of columns (=2) |
java.lang.String |
getColumnName(int columnIndex)
Gets column header names. |
DXEntry |
getNewEntry()
Returns a new entry |
DXEntry |
getOldEntry()
|
RDN |
getRDN()
Returns the escaped RDN (possibly multi-valued). |
int |
getRDNSize()
Returns the size of the naming RDN. |
int |
getRowCount()
Returns number of rows (varies dynamically) |
java.lang.String |
getStringValueAt(int row,
int col)
Returns a value as a string. |
java.lang.Object |
getValueAt(int row,
int col)
Return the object at a given position. |
void |
insertAttribute(DXAttribute att,
int type)
Adds a single attribute, and (possibly multiple, or blank) values to the table. |
void |
insertAttributes(DXEntry entry)
Insert a set of attributes into the table. |
boolean |
isCellEditable(int row,
int col)
Whether a particular column is editable (yes if col! |
boolean |
isMandatory(java.lang.String attributeTypeName)
Brute force search to find an attributeType given only the name. |
void |
removeNamingComponent(AttributeType currentType,
AttributeValue currentValue)
This removes a component from the array of naming atts, and sets the currentValue object to be a naming value. |
void |
reset()
'Resets' the value of all attribute Value cells back to their original value. |
protected void |
setRDN(RDN rdn)
Sets up the list of naming attribute types - values pairs. |
void |
setValueAt(java.lang.Object aValue,
int row,
int col)
Allows a cell value to be set (should only ever be the second column, col=1). |
| Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected boolean dataChanged
| Constructor Detail |
public AttributeTableModel()
| Method Detail |
public int getRDNSize()
public java.lang.Class getColumnClass(int c)
getColumnClass in interface javax.swing.table.TableModelgetColumnClass in class javax.swing.table.AbstractTableModelpublic int getColumnCount()
public int getRowCount()
public void setValueAt(java.lang.Object aValue,
int row,
int col)
setValueAt in interface javax.swing.table.TableModelsetValueAt in class javax.swing.table.AbstractTableModel
public java.lang.String getStringValueAt(int row,
int col)
public java.lang.Object getValueAt(int row,
int col)
public boolean isCellEditable(int row,
int col)
isCellEditable in interface javax.swing.table.TableModelisCellEditable in class javax.swing.table.AbstractTableModelpublic java.lang.String getColumnName(int columnIndex)
getColumnName in interface javax.swing.table.TableModelgetColumnName in class javax.swing.table.AbstractTableModelpublic void reset()
public void clear()
public void insertAttributes(DXEntry entry)
protected void setRDN(RDN rdn)
rdn - the RDN to extract the naming information from.
public void insertAttribute(DXAttribute att,
int type)
throws javax.naming.NamingException
javax.naming.NamingException
public void addAttribute(java.lang.String ID,
AttributeValue val,
int type)
public void addAttribute(java.lang.String ID,
AttributeValue val,
int type,
int indexPos)
public void deleteAttribute(java.lang.String ID,
int indexPos)
public void fireChange()
public DXEntry getOldEntry()
public RDN getRDN()
Returns the escaped RDN (possibly multi-valued).
Implementation Note: The returned RDN is created based on the internal naming type/value arrays, which must be synched with the user modified attribute list
public DXEntry getNewEntry()
public javax.naming.directory.Attribute getAttribute(java.lang.String ID)
public boolean isMandatory(java.lang.String attributeTypeName)
public boolean checkMandatoryAttributesSet()
public void removeNamingComponent(AttributeType currentType,
AttributeValue currentValue)
public void dumpNamingArrays()
public void addNamingComponent(AttributeType currentType,
AttributeValue currentValue)
public boolean changedByUser()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||