Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » how to hide checkbox seen with SWT.CHECK
how to hide checkbox seen with SWT.CHECK [message #987105] Fri, 23 November 2012 14:08
cheng shouwu is currently offline cheng shouwu
Messages: 12
Registered: September 2012
Junior Member
Hi Guys:

I am building a treegrid column with following code(pls make attention to "SWT.CHECK" style):

GridViewerColumn column = new GridViewerColumn(v, SWT.CHECK|SWT.CENTER);
column.getColumn().setWidth(60);
column.getColumn().setText("test");


it will display checkbox seen in the column.


but in some rows I do not want to display the checkbox seen,and I tried to hide the seen with following code,but it can not work,how should I do to hide the seen?if there is not way to hide seen with SWT.CHECK,how to build this column with checkbox(only click with one,but not CheckboxCellEditor with check or uncheck image)?

column.setEditingSupport(new CheckEditingSupport(v) {
protected boolean canEdit(Object element) {
  return true;
}
protected CellEditor getCellEditor(Object element) {
  return null;
}
protected Object getValue(Object element) {
  return false; 
}
	
public void setValue(Object element, Object value) {
 //....
}
});		
Previous Topic:Representation of details to the seconds level
Next Topic:[Grid] Supressing Line Number in Row Header
Goto Forum:
  


Current Time: Tue Oct 21 10:25:18 GMT 2014

Powered by FUDForum. Page generated in 0.18215 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software