Question

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.

Était-ce utile?

La solution

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.

Autres conseils

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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top