문제

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