[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.platform.swt] Re: Where to find checkbox images for TableViewer
|
Hi,
Well JFace' approach is a little bit different and leaves it to the user
how he/she wants to present the data. JFace won't make assumptions based
on data types but it shouldn't be too hard for you to provide a generic
ITableLabelProvider doing this for you.
In 3.3 things changed tremendously by providing you ViewerColumns which
means you'll create a BooleanViewerColumn and reuse it for all columns
representing columns with boolean values in any table you want.
A thing JFace need to provide is that you can use arbitary controls to
represent data instead instead of only using Strings and Images a
problem might be how to make it work with the CellEditor idea used a the
moment and resource usage in big Tables/Trees.
If you want to explore new features in 3.3 you can try it out easily by
using http://tom-eclipse-dev.blogspot.com/.
I for myself must say that at first I also thought JFace's approach is
not as comfortable than the one Swing uses but in since then I reverted
my opinion and think JFace gives me so much flexiblity and the
possiblity to write my own reusable components.
Tom
Patrick Godeau schrieb:
> Tom Schindl a écrit :
>> TableViewer doesn't provide the possiblity to place arbitary controls in
>> the table but it might be an interesting idea to provide something like
>> this in 3.3.
>
> It would be a good idea, to catch up with Swing's advance. The Swing API
> much more powerful than SWT/JFace. For example, a JTable manages
> checkbox editors automatically for boolean types.
>