SWT Table with fixed rows [message #558278] |
Fri, 10 September 2010 18:50 |
Eclipse User |
|
|
|
Originally posted by: steve_lukshides.us.ibm.com
Hello,
I have an app that requires a row at the bottom of a table to always be
visible. The table holds columns of numbers which are summed, with the
totals displaying in that fixed row at the bottom. The app was
originally written by someone else and implemented using two tables, one
for the numeric data, and the other for the sum totals. For a number of
reasons, this is not ideal. For example, resizing a column in the top
table doesn't resize the columns in the totals table. Does anyone know
of an SWT table control that has a feature whereby a row can be locked
at the bottom? I haven't been able to find one with such a feature.
Thanks.
Steve
|
|
|
|
|
Re: SWT Table with fixed rows [message #558619 is a reply to message #558297] |
Mon, 13 September 2010 17:22 |
Eclipse User |
|
|
|
Originally posted by: steve_lukshides.us.ibm.com
Tom,
I thought about that one but there is no mention of locked rows on the
Nebula Grid web page, nor was I able to find a Javadoc. It also says
it's in Alpha state, where it has been for more than a year. My
application is in production so I don't know if I can trust it to alpha
code, especially alpha code that doesn't seem to progress. Have you
used it? Is it at all stable? Have you used the lock rows feature?
Can you point me to any javadoc? Thanks
Steve
Tom Schindl wrote:
> Nebula-Grid has such a feature.
>
> Tom
>
> Am 10.09.10 20:50, schrieb Steve Lukshides:
>> Hello,
>> I have an app that requires a row at the bottom of a table to always be
>> visible. The table holds columns of numbers which are summed, with the
>> totals displaying in that fixed row at the bottom. The app was
>> originally written by someone else and implemented using two tables, one
>> for the numeric data, and the other for the sum totals. For a number of
>> reasons, this is not ideal. For example, resizing a column in the top
>> table doesn't resize the columns in the totals table. Does anyone know
>> of an SWT table control that has a feature whereby a row can be locked
>> at the bottom? I haven't been able to find one with such a feature.
>> Thanks.
>>
>> Steve
>
|
|
|
Re: SWT Table with fixed rows [message #558640 is a reply to message #558281] |
Mon, 13 September 2010 18:39 |
Eclipse User |
|
|
|
Originally posted by: steve_lukshides.us.ibm.com
I looked into this a while ago but found that the table wasn't sending
events when a column was resized. I'll have to look into that again. Do
you know for sure that the Table does send this event? Thanks.
eshvar60 wrote:
> Thats a tough one.
> Have you thought about making your own viewer by wrapping two jface
> Tables together?
> That way you can overcome the problems such as resizing by simply
> installing Listeners on the Summation table that listen to any important
> events in the top table.
|
|
|
Re: SWT Table with fixed rows [message #558681 is a reply to message #558619] |
Mon, 13 September 2010 22:24 |
Thomas Schindl Messages: 6651 Registered: July 2009 |
Senior Member |
|
|
I'm the maintainer and we are just starting to wrap up our code (in
reality our Nebula project is going to) to release a 0.9 version in Q4
and 1.0 soon afterwards.
The current alpha state label is completely missleading though even today:
* We have no serious bugs (though naturally we have bugs not fixed yet)
* We haven't broken APIs since a long long time (beside fixing a typo
in a method > 6 months ago)
The fixed footer (and it is really only a fixed footer row!) is a hidden
feature of Nebula-Grid but there are others as well:
* Possibility to add controls into the header
* Information about current visible cells (needed to clean up e.g.
image handles, paged loading, ...)
And the best is if you are using JFace-Viewers the code change is
minimal - replace TableViewer/TableViewerColumn through
GridViewer/GridViewerColumn and you are done. Afertwards you can explore
the extra features of Nebula-Grid :-)
Tom
Am 13.09.10 19:22, schrieb Steve Lukshides:
> Tom,
> I thought about that one but there is no mention of locked rows on the
> Nebula Grid web page, nor was I able to find a Javadoc. It also says
> it's in Alpha state, where it has been for more than a year. My
> application is in production so I don't know if I can trust it to alpha
> code, especially alpha code that doesn't seem to progress. Have you
> used it? Is it at all stable? Have you used the lock rows feature? Can
> you point me to any javadoc? Thanks
>
> Steve
>
> Tom Schindl wrote:
>> Nebula-Grid has such a feature.
>>
>> Tom
>>
>> Am 10.09.10 20:50, schrieb Steve Lukshides:
>>> Hello,
>>> I have an app that requires a row at the bottom of a table to always be
>>> visible. The table holds columns of numbers which are summed, with the
>>> totals displaying in that fixed row at the bottom. The app was
>>> originally written by someone else and implemented using two tables, one
>>> for the numeric data, and the other for the sum totals. For a number of
>>> reasons, this is not ideal. For example, resizing a column in the top
>>> table doesn't resize the columns in the totals table. Does anyone know
>>> of an SWT table control that has a feature whereby a row can be locked
>>> at the bottom? I haven't been able to find one with such a feature.
>>> Thanks.
>>>
>>> Steve
>>
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04313 seconds