|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.ca.directory.jxplorer.viewer.tableviewer.AbstractCellEditor
|
+--com.ca.directory.jxplorer.viewer.tableviewer.AttributeValueCellEditor
The cell editor that brings up the dialog. We inherit from AbstractCellEditor, even though it means we have to create a dummy check box. Attribute Value Editor uses schema info to validate the user's input before submission...
| Field Summary | |
DN |
currentDN
|
DataSource |
datasource
|
protected java.lang.ClassLoader |
myLoader
|
| Fields inherited from class com.ca.directory.jxplorer.viewer.tableviewer.AbstractCellEditor |
changeEvent, clickCountToStart, listenerList, value |
| Constructor Summary | |
AttributeValueCellEditor(java.awt.Frame parent)
A basic constructor, which does little except add a mouse listener to the default text field, setting the click count for 'cancel editing' to two. |
|
| Method Summary | |
void |
cleanupEditor()
Sets the the abstract editor (display editor for binary data - e.g. the audio player, or photo viewer), to null. |
java.lang.String |
getAttributeSyntax(AttributeValue att)
Returns the syntax of the attribute value that is supplied |
java.awt.Component |
getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int row,
int column)
Returns an awt.Component that acts as a cell editor. |
boolean |
isCellEditable(java.util.EventObject e)
Checks if the user has clicked sufficient times to make the cell editable. |
boolean |
isCertificate(AttributeValue att)
Checks if the attribute value is a certificate. |
boolean |
isGeneralizedTime(AttributeValue att)
Checks if the attribute value is a generalizedTime.. |
boolean |
isPostalAddress(AttributeValue att)
Checks if the attribute value is a postalAddress. |
void |
registerClassLoader(java.lang.ClassLoader loader)
Optionally register a new class loader for atribute value viewers to use. |
void |
setDataSource(DataSource ds)
Returns the datasource. |
void |
setDN(DN dn)
Sets the dn of the entry being modified. |
void |
startBinaryEditor(AttributeValue att)
Kicks of a separate binary editor by looking for a Java class with name of the attribute, plus the word 'Editor', and starting that up if it can be found. |
boolean |
stopCellEditing()
Does a quick check to make the binary handling sane (if necessary) before calling the super class stopCellEditing. |
| Methods inherited from class com.ca.directory.jxplorer.viewer.tableviewer.AbstractCellEditor |
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorValue, getClickCountToStart, removeCellEditorListener, setCellEditorValue, setClickCountToStart, shouldSelectCell |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.ClassLoader myLoader
public DataSource datasource
public DN currentDN
| Constructor Detail |
public AttributeValueCellEditor(java.awt.Frame parent)
| Method Detail |
public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int row,
int column)
public boolean isCertificate(AttributeValue att)
att - the attribute value for example 'Fred' from 'cn=Fred'.
public boolean isPostalAddress(AttributeValue att)
att - the attribute value for example 'Fred' from 'cn=Fred'.
public boolean isGeneralizedTime(AttributeValue att)
att - the attribute value for example 'Fred' from 'cn=Fred'.
public java.lang.String getAttributeSyntax(AttributeValue att)
att - the attribute value for example 'Fred' from 'cn=Fred'.
public boolean stopCellEditing()
stopCellEditing in interface javax.swing.CellEditorstopCellEditing in class AbstractCellEditorpublic boolean isCellEditable(java.util.EventObject e)
isCellEditable in interface javax.swing.CellEditorisCellEditable in class AbstractCellEditorpublic void startBinaryEditor(AttributeValue att)
public void registerClassLoader(java.lang.ClassLoader loader)
public void setDataSource(DataSource ds)
ds - the datasource.public void setDN(DN dn)
dn - the DN of the entry being modified.public void cleanupEditor()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||