{
if (editBinaryDlg == null)
{
editBinaryPanel = new BinaryAttributeEditorPanel();
editBinaryPanel.setInfo(getInfo());
editBinaryDlg = new GenericDialog(Utilities.getFrame(table),
editBinaryPanel);
editBinaryDlg.setModal(true);
Utilities.centerGoldenMean(editBinaryDlg,
Utilities.getParentDialog(table));
}
if (binaryValue != null)
{
editBinaryPanel.setValue(attrName, binaryValue);
}
else if (value != null)
{
if (value.length > 0)
{
editBinaryPanel.setValue(attrName,
BinaryValue.createBase64(value));
}
else
{
editBinaryPanel.setValue(attrName, null);
}
}
else
{
editBinaryPanel.setValue(attrName, null);
}
editBinaryDlg.setVisible(true);
if (editBinaryPanel.valueChanged())
{
BinaryValue changedValue = editBinaryPanel.getBinaryValue();
binaryValue = changedValue;
value = null;
ocValue = null;
}
fireEditingStopped();
}
});
ocPanel = new ObjectClassCellPanel();
ocPanel.addEditActionListener(new ActionListener()
{
/**
* {@inheritDoc}
*/
public void actionPerformed(ActionEvent ev)
{
if (editOcDlg == null)
{
editOcPanel = new ObjectClassEditorPanel();
editOcPanel.setInfo(getInfo());
editOcDlg = new GenericDialog(
null,
editOcPanel);
editOcDlg.setModal(true);
Utilities.centerGoldenMean(editOcDlg,
Utilities.getParentDialog(table));