Domanda

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.

È stato utile?

Soluzione

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.

Altri suggerimenti

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top