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.

有帮助吗?

解决方案

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.

其他提示

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top