2

I would like to render some TableViewer columns, so that the cells in this column look like special widgets.

(Links, Buttons, etc. should be present in each cell)

How would I implement those renderers?
This implementation should support thousands of tablerows, and do not flicker when scrolling through the table.

Baz
  • 36,440
  • 11
  • 68
  • 94
Skip
  • 6,240
  • 11
  • 67
  • 117

2 Answers2

2

Rather then implementing you own renderers, which 'looks like' real controls, why not use table which can actually render custom controls?

http://www.eclipse.org/nebula/widgets/compositetable/compositetable.php

And it's really fast.

execc
  • 1,083
  • 12
  • 25
0

you should be able to add SWT controls in Table by following my post here

SWT - Tableviewer adding a remove button to a column in the table

User TableEditor class. Make sure add Listener on Table for SWT.measureitem event and compute height and width. you could actually reuse widgets if you implement it carefully.

Community
  • 1
  • 1
sambi reddy
  • 3,065
  • 1
  • 13
  • 10
  • 1
    Sorry, placing Widgets abouve the Table in this way is really ineffective! It crasheds allready, when displaying about 1000 widgets in a table... – Skip Nov 19 '12 at 16:36
  • You need to effectively create/dispose them when you need them. Create widget when the corresponding cell is visible in Table display area and dispose it when not required. – sambi reddy Nov 19 '12 at 17:30