Using CompositeTable as a basic Table replacement [message #23357] |
Thu, 18 January 2007 20:37  |
Eclipse User |
|
|
|
Originally posted by: mbayly.nospam.telus.net
I was looking into CompositeTable as a basic Table replacement to provide
a virtual table which could be used with JFace databinding.
The main problem is probably going to be the non-standard look and feel of
the header columns and the inability to resize columns - both of which you
get for free with a standard SWT table.
I was wondering if there were any plans to add these features to a composite
table. I guess one approach would be to use a standard SWT table as the
header row and then somehow hook up the resize notifications to the widgets
in the other rows. It looks like CTreeTable is doing something similar.
Any thoughts on how difficult this would be to do?
Thanks
Martin
|
|
|
|
|
Re: Using CompositeTable as a basic Table replacement [message #23569 is a reply to message #23484] |
Fri, 19 January 2007 09:41  |
Eclipse User |
|
|
|
Thanks Jeremy!
Dave
Jeremy Dowdall wrote:
> David J. Orme wrote:
>>> I guess one approach would be to use a standard SWT table as the
>>> header row and then somehow hook up the resize notifications to the
>>> widgets in the other rows. It looks like CTreeTable is doing
>>> something similar.
>>
>> Wow, I hadn't thought of doing it that way. It's definitely worth
>> exploring. Maybe I'll try a spike of that tomorrow.
>
> This has actually been reworked a bit just this week to be cleaner and
> allow for a custom header (guess I'm working in the opposite direction!
> :)). The updates will be committed over the weekend.
> The most frustrating part of this implementation has been that on GTK I
> can simply set the SWT Table's scrollbars to match those of the CTree's
> and the two are in sync, but in Win32 this does not work - instead, the
> whole table has to be moved left/right to mimic scrolling.
>
> Let me know if I can be of help,
> cheers
|
|
|
Re: Using CompositeTable as a basic Table replacement [message #574993 is a reply to message #23357] |
Fri, 19 January 2007 00:05  |
Eclipse User |
|
|
|
martin wrote:
> I was looking into CompositeTable as a basic Table replacement to
> provide a virtual table which could be used with JFace databinding.
> The main problem is probably going to be the non-standard look and feel
> of the header columns and the inability to resize columns - both of
> which you get for free with a standard SWT table.
>
> I was wondering if there were any plans to add these features to a
> composite table.
Standard look and feel - I think that requires SWT providing a native
Header control. If they provide it, we can use it.
Column resizing using the current API - I'm working on that right now. :-)
> I guess one approach would be to use a standard SWT
> table as the header row and then somehow hook up the resize
> notifications to the widgets in the other rows. It looks like
> CTreeTable is doing something similar.
Wow, I hadn't thought of doing it that way. It's definitely worth
exploring. Maybe I'll try a spike of that tomorrow.
> Any thoughts on how difficult this would be to do?
Well, the API for implementing column resizing using the current
non-native header mechanism is done now. I've been debating doing a new
release with the new API versus adding the column sizing behavior first.
Since you've asked for this, I'm going to release what I've got now and
then look at using a native table as the header as you suggest. If we
can capture the column sizing events from the native table, this should
be workable, but I have no idea how easily yet.
Regards,
Dave Orme
|
|
|
Re: Using CompositeTable as a basic Table replacement [message #575017 is a reply to message #23442] |
Fri, 19 January 2007 06:04  |
Eclipse User |
|
|
|
David J. Orme wrote:
>> I guess one approach would be to use a standard SWT table as the
>> header row and then somehow hook up the resize notifications to the
>> widgets in the other rows. It looks like CTreeTable is doing
>> something similar.
>
> Wow, I hadn't thought of doing it that way. It's definitely worth
> exploring. Maybe I'll try a spike of that tomorrow.
This has actually been reworked a bit just this week to be cleaner and
allow for a custom header (guess I'm working in the opposite direction!
:)). The updates will be committed over the weekend.
The most frustrating part of this implementation has been that on GTK I
can simply set the SWT Table's scrollbars to match those of the CTree's
and the two are in sync, but in Win32 this does not work - instead, the
whole table has to be moved left/right to mimic scrolling.
Let me know if I can be of help,
cheers
|
|
|
Re: Using CompositeTable as a basic Table replacement [message #575063 is a reply to message #23484] |
Fri, 19 January 2007 09:41  |
Eclipse User |
|
|
|
Thanks Jeremy!
Dave
Jeremy Dowdall wrote:
> David J. Orme wrote:
>>> I guess one approach would be to use a standard SWT table as the
>>> header row and then somehow hook up the resize notifications to the
>>> widgets in the other rows. It looks like CTreeTable is doing
>>> something similar.
>>
>> Wow, I hadn't thought of doing it that way. It's definitely worth
>> exploring. Maybe I'll try a spike of that tomorrow.
>
> This has actually been reworked a bit just this week to be cleaner and
> allow for a custom header (guess I'm working in the opposite direction!
> :)). The updates will be committed over the weekend.
> The most frustrating part of this implementation has been that on GTK I
> can simply set the SWT Table's scrollbars to match those of the CTree's
> and the two are in sync, but in Win32 this does not work - instead, the
> whole table has to be moved left/right to mimic scrolling.
>
> Let me know if I can be of help,
> cheers
|
|
|
Powered by
FUDForum. Page generated in 0.04931 seconds