Home » Eclipse Projects » Nebula » [CompositeTable] 6th Oct 2006
[CompositeTable] 6th Oct 2006 [message #13554] |
Fri, 06 October 2006 13:16  |
Eclipse User |
|
|
|
Hi David,
Now I'm really really used CompositeTable in production application.
1st of all, I would like to say thanks for few things :-
1)what a nice pice of control!!
2)AbsoluteLayout, it works!! :-D
Now I able to design row's components using VE! Thanks!
3)Scrolling performance in AbsoluteLayout excellent!! no complaint!! super
fast!
Few questions/comments :-)
1)Nice if row height can be set or base on row's component height.
2)Is there anyway that I can insert row ?
3)Performance in "grid" not so good as AbsoluteLayout... slow scrolling...
4)Is tehre anyway that I can create a heighlight on row in grid ?
5)Readonly mode in grid ?
Thanks and hope to hear from you soon.
Hey, can I email you directly ? We can adopting CompositeTable as our
standard table control for our financial app.
Thanks
|
|
|
Re: [CompositeTable] 6th Oct 2006 [message #13662 is a reply to message #13554] |
Mon, 09 October 2006 00:14   |
Eclipse User |
|
|
|
Ivan wrote:
> Hi David,
>
> Now I'm really really used CompositeTable in production application.
Excellent!
> 1st of all, I would like to say thanks for few things :-
> 1)what a nice pice of control!!
Thanks! <blush/>
> 2)AbsoluteLayout, it works!! :-D
> Now I able to design row's components using VE! Thanks!
> 3)Scrolling performance in AbsoluteLayout excellent!! no complaint!!
> super fast!
>
> Few questions/comments :-)
>
> 1)Nice if row height can be set or base on row's component height.
I know. Well, it's based on the *prototype row* component's height, and
all rows *must* be the same height. This can be a minor headache
sometimes. It really should compute the height of each row and use that
dynamically.
> 2)Is there anyway that I can insert row ?
From the user interface: Ctrl-Insert, by default.
From code: insert the row in your underlying collection,
setNumRows(numRows+1), compositeTable.refresh() or something like that.
If you're using data binding, the grid will refresh automatically if its
bound to a collection and a row is inserted or deleted in the collection.
> 3)Performance in "grid" not so good as AbsoluteLayout... slow scrolling...
Can you write a snippet and post it here please? CompositeTable is
designed for (1) speed, and (2) in-place editing. Any performance
problems should be reported as bugs.
> 4)Is there anyway that I can
> create a heighlight on row in grid ?
Yes, but it's slightly tricky. Basically, you have to write an SWT
control that behaves like the highlight bar in a list box. Off the top
of my head (I'm away from my code that does this right now), this means:
1) Process traverse events to tell SWT to accept focus.
2) In focusIn:
setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_ LIST_BOX_SELECTION));
(That's not the right SWT constant, but you'll find it; sorry I don't
have the actual code handy to look it up for you.)
3) in focusOut:
setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_ WIDGET_BACKGROUND));
(I'm pretty sure of that color constant but check it)
Then use SWT Label objects for your actual data.
> 5)Readonly mode in grid ?
Use SWT Label objects to display your data and it'll be read-only. :-)
> Thanks and hope to hear from you soon. Hey, can I email you directly ?
If you need consulting, training, or mentoring services, by all means
email me directly. :-)
However, I prefer for technical questions to go to this newsgroup
because then others will benefit from the answers, and as long as you
use [CompositeTable] in the subject, your message will automatically be
forwarded to my email anyway. :-)
> We can adopting CompositeTable as our standard table control for our
> financial app.
Excellent. As always, patches are appreciated. :-)
Best regards,
Dave Orme
|
|
| |
Re: [CompositeTable] 6th Oct 2006 [message #14765 is a reply to message #13809] |
Sat, 21 October 2006 02:27  |
Eclipse User |
|
|
|
Hi Ivan,
No footer (yet), but maybe soon. :-)
Thanks for the bug report. Let's continue this discussion there. :-)
Regards,
Dave Orme
Ivan wrote:
> Hi David,
>
> Sorry for my late repply..
>
>> I know. Well, it's based on the *prototype row* component's height,
>> and all rows *must* be the same height. This can be a minor headache
>> sometimes. It really should compute the height of each row and use
>> that dynamically.
>
> see..... hmm.... any reasons all rows must be the same height ? This
> section
> look interesting! :-D
>> From the user interface: Ctrl-Insert, by default.
>>
>> From code: insert the row in your underlying collection,
>> setNumRows(numRows+1), compositeTable.refresh() or something like that.
>
> that good! :-D
>
>> Can you write a snippet and post it here please? CompositeTable is
>> designed for (1) speed, and (2) in-place editing. Any performance
>> problems should be reported as bugs.
>
> Actually... I used the example came with the download...
> I will attach that as well.... slow pending...
> oh ya! any news about footer ?
> Thanks! CompositeTable look interesting to me! might try my luck to
> patch it!
>
|
|
|
Re: [CompositeTable] 6th Oct 2006 [message #566398 is a reply to message #13554] |
Mon, 09 October 2006 00:14  |
Eclipse User |
|
|
|
Ivan wrote:
> Hi David,
>
> Now I'm really really used CompositeTable in production application.
Excellent!
> 1st of all, I would like to say thanks for few things :-
> 1)what a nice pice of control!!
Thanks! <blush/>
> 2)AbsoluteLayout, it works!! :-D
> Now I able to design row's components using VE! Thanks!
> 3)Scrolling performance in AbsoluteLayout excellent!! no complaint!!
> super fast!
>
> Few questions/comments :-)
>
> 1)Nice if row height can be set or base on row's component height.
I know. Well, it's based on the *prototype row* component's height, and
all rows *must* be the same height. This can be a minor headache
sometimes. It really should compute the height of each row and use that
dynamically.
> 2)Is there anyway that I can insert row ?
From the user interface: Ctrl-Insert, by default.
From code: insert the row in your underlying collection,
setNumRows(numRows+1), compositeTable.refresh() or something like that.
If you're using data binding, the grid will refresh automatically if its
bound to a collection and a row is inserted or deleted in the collection.
> 3)Performance in "grid" not so good as AbsoluteLayout... slow scrolling...
Can you write a snippet and post it here please? CompositeTable is
designed for (1) speed, and (2) in-place editing. Any performance
problems should be reported as bugs.
> 4)Is there anyway that I can
> create a heighlight on row in grid ?
Yes, but it's slightly tricky. Basically, you have to write an SWT
control that behaves like the highlight bar in a list box. Off the top
of my head (I'm away from my code that does this right now), this means:
1) Process traverse events to tell SWT to accept focus.
2) In focusIn:
setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_ LIST_BOX_SELECTION));
(That's not the right SWT constant, but you'll find it; sorry I don't
have the actual code handy to look it up for you.)
3) in focusOut:
setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_ WIDGET_BACKGROUND));
(I'm pretty sure of that color constant but check it)
Then use SWT Label objects for your actual data.
> 5)Readonly mode in grid ?
Use SWT Label objects to display your data and it'll be read-only. :-)
> Thanks and hope to hear from you soon. Hey, can I email you directly ?
If you need consulting, training, or mentoring services, by all means
email me directly. :-)
However, I prefer for technical questions to go to this newsgroup
because then others will benefit from the answers, and as long as you
use [CompositeTable] in the subject, your message will automatically be
forwarded to my email anyway. :-)
> We can adopting CompositeTable as our standard table control for our
> financial app.
Excellent. As always, patches are appreciated. :-)
Best regards,
Dave Orme
|
|
|
Re: [CompositeTable] 6th Oct 2006 [message #566606 is a reply to message #13662] |
Thu, 12 October 2006 11:25  |
Eclipse User |
|
|
|
Hi David,
Sorry for my late repply..
>I know. Well, it's based on the *prototype row* component's height, and all
>rows *must* be the same height. This can be a minor headache sometimes. It
>really should compute the height of each row and use that dynamically.
see..... hmm.... any reasons all rows must be the same height ? This
section
look interesting! :-D
> From the user interface: Ctrl-Insert, by default.
>
> From code: insert the row in your underlying collection,
>setNumRows(numRows+1), compositeTable.refresh() or something like that.
that good! :-D
>Can you write a snippet and post it here please? CompositeTable is designed
>for (1) speed, and (2) in-place editing. Any performance problems should be
>reported as bugs.
Actually... I used the example came with the download...
I will attach that as well.... slow pending...
oh ya! any news about footer ?
Thanks! CompositeTable look interesting to me! might try my luck to patch
it!
|
|
|
Re: [CompositeTable] 6th Oct 2006 [message #566997 is a reply to message #13809] |
Sat, 21 October 2006 02:27  |
Eclipse User |
|
|
|
Hi Ivan,
No footer (yet), but maybe soon. :-)
Thanks for the bug report. Let's continue this discussion there. :-)
Regards,
Dave Orme
Ivan wrote:
> Hi David,
>
> Sorry for my late repply..
>
>> I know. Well, it's based on the *prototype row* component's height,
>> and all rows *must* be the same height. This can be a minor headache
>> sometimes. It really should compute the height of each row and use
>> that dynamically.
>
> see..... hmm.... any reasons all rows must be the same height ? This
> section
> look interesting! :-D
>> From the user interface: Ctrl-Insert, by default.
>>
>> From code: insert the row in your underlying collection,
>> setNumRows(numRows+1), compositeTable.refresh() or something like that.
>
> that good! :-D
>
>> Can you write a snippet and post it here please? CompositeTable is
>> designed for (1) speed, and (2) in-place editing. Any performance
>> problems should be reported as bugs.
>
> Actually... I used the example came with the download...
> I will attach that as well.... slow pending...
> oh ya! any news about footer ?
> Thanks! CompositeTable look interesting to me! might try my luck to
> patch it!
>
|
|
|
Goto Forum:
Current Time: Wed May 07 15:07:24 EDT 2025
Powered by FUDForum. Page generated in 0.04556 seconds
|