CheckBox button in a TableColumn [message #639630] |
Wed, 17 November 2010 09:47 |
Sunny Messages: 6 Registered: May 2010 |
Junior Member |
|
|
Hi,
I am new in SWT. I have a Table with 6 Columns and I would like to define the last column as a checkbox buttons. How can I do this in the column definition?.
With a TableEditor and a TableItem I should give the number of Rows what I would not give.
I am using this :
Quote: |
viewer = new TableViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL|SWT.FULL_SELECTION);
viewer.setUseHashlookup(true);
Table table = viewer.getTable();
col1 = new TableColumn(table, SWT.NONE);
col1.setWidth(30);
col1.setMoveable(true);
col1.addSelectionListener(sortListener);
...
// Here I would like to define this Column as checkbox one.
col6 = new TableColumn(table, SWT.NONE);
col6.setWidth(30);
col6.setText(Messages.DokumenteView_Apex);
col6.setMoveable(true);
col6.addSelectionListener(sortListener);
table.setHeaderVisible(true);
table.setLinesVisible(true);
|
Thanks
|
|
|
Powered by
FUDForum. Page generated in 0.03010 seconds