problem with the CheckboxCellEditor [message #1708021] |
Fri, 11 September 2015 13:35 |
Shashi Mising name Messages: 47 Registered: August 2011 |
Member |
|
|
Dear All,
I created the tree viewer using the nebula Xviewer and i would like to add checkBoxCell editor for the coulmn data in the viewer using editing support.
but when i create CheckboxCellEditor and append to the viewer column it is not coming in the viewer.
Code :
public final void createCellEditors() {
if (xviewer != null) {
List<XViewerColumn> createdColumnList = ((viewerFactory) xviewer.getXViewerFactory()).getColumns();
int columnListSize = createdColumnList.size();
CellEditor[] editors = new CellEditor[columnListSize];
for (int i = 0; i < columnListSize; i++) {
CellEditor checkCellEditor = CheckboxCellEditor cellEditor=new CheckboxCellEditor(xviewer.getTree());
editors[i] = checkCellEditor ;
}
xviewer.setCellEditors(editors);
xviewer.setCellModifier(new CellModifier(xviewer));
xviewer.setColumnProperties(COLUMN_HEADERS);
xviewer.refresh();
}
}
when i print checkbox.getControl() in console i am getting null , so it would be helpful if someone suggest how to resolve this.
|
|
|
Powered by
FUDForum. Page generated in 0.02330 seconds