public CellEditor createCellEditor(final Table table)
{
if ((_cellEdt == null) && editable)
{
String[] tblAttrName = new String[0];
_cellEdt = new ComboBoxCellEditor(table, tblAttrName);
_cmbCellEditor = (ComboBoxCellEditor) _cellEdt;
}
return _cellEdt;
}
});
_tbl.addROAttribut("Type", AttrType.T_String, "Type", 80);
_tbl.addAttribut(new PojoColumnDescr("Test", AttrType.T_Object, "Test", 50)
{
public CellEditor createCellEditor(final Table table)
{
if ((_cellEdt == null) && editable)
{
int i = 0;
QueryAttr.T_Test[] te = QueryAttr.T_Test.values();
String[] tblAttrName = new String[te.length];
for (QueryAttr.T_Test e : te)
{
tblAttrName[i++] = e.text;
}
_cellEdt = new ComboBoxCellEditor(table, tblAttrName);
}
return _cellEdt;
}
});