Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » CompositeTable selection question
CompositeTable selection question [message #60176] Fri, 17 October 2008 18:11 Go to next message
David Kyle is currently offline David Kyle
Messages: 125
Registered: July 2009
Senior Member
Hi,

I'm trying to use CompositeTable to handle an extremely large list of items.
The only problem I am having is with selections. If I select the first item,
click the scrollbar scrolldown button, the selection is now incorrect. I've
attached a snippet that shows what happens, I'm using CompositeTable 0.9.4
with Eclipse 3.4.1.

Am I asking too much from CompositeTable to have it remember a single
selection?

I can not use exist SWT widgets with SWT.VIRTUAL because our lists are too
large.

Thanks,
David Kyle
http://richclientplatform.blogspot.com/


Re: CompositeTable selection question [message #60226 is a reply to message #60176] Tue, 21 October 2008 18:23 Go to previous message
Dave Orme is currently offline Dave Orme
Messages: 424
Registered: July 2009
Senior Member
To get the selected row, use:

table.getSelection() + table.getTopRow()

CompositeTable only cares about what it actually displays.


Regards,

Dave

On Fri, 2008-10-17 at 12:11 -0600, David Kyle wrote:
> Hi,
>
> I'm trying to use CompositeTable to handle an extremely large list of items.
> The only problem I am having is with selections. If I select the first item,
> click the scrollbar scrolldown button, the selection is now incorrect. I've
> attached a snippet that shows what happens, I'm using CompositeTable 0.9.4
> with Eclipse 3.4.1.
>
> Am I asking too much from CompositeTable to have it remember a single
> selection?
>
> I can not use exist SWT widgets with SWT.VIRTUAL because our lists are too
> large.
>
> Thanks,
> David Kyle
> http://richclientplatform.blogspot.com/
>
>
> begin 666 CompositeTableSelection.java
> M+RHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BH J
> M*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BH-"B J($-O<'ER
> M:6=H=" H8RD@,C P-B!)0DT@0V]R<&]R871I;VX@86YD(&]T:&5R<RX-"B J
> M($%L;"!R:6=H=',@<F5S97)V960N(%1H:7,@<')O9W)A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;G1E;G10 <F]V
> M:61E<CL-"FEM<&]R="!O<F<N96-L:7!S92YS=W0N=VED9V5T<RY#;VUP;W-I
> M=&4N=')O;#L-
> M"FEM<&]R="!O<F<N96-L:7!S92YS=W0N=VED9V5T<RY$:7-P;&%Y.PT*:6UP
> M;W)T(&]R9RYE8VQI<'-E+G-W="YW:61G971S+DQA8F5L.PT*:6UP;W)T(&]R
> M9RYE8VQI<'-E+G-W="YW:61G971S+E-H96QL.PT*#0HO*@T*("H@0V]M<&]S
> M:71E5&%B;&4@<V5L96-T:6]N('!R;V)L96TN( T*("H@(#$N(%-E;&5C="!T
> M:&4@9FER<W0@:71E;2!I;B!T:&4@;&ES= T*("H@(#(N(%5S92!T:&4@<V-R
> M;VQL8F%R('-C<F]L;&1O=VX@8G5T=&]N#0H@*B @,RX@3F]T:6-E(&AO=R!T
> M:&4@<V5L96-T:6]N(&AI;&EG:'1I;F<@:7,@:6YC;W)R96-T#0H@*B @#0H@
> M*B @06T@22!A<VMI;F<@=&]O(&UU8V@@9G)O;2!#;VUP;W-I=&5486)L93\-
> M"B J+PT*<'5B;&EC(&-L87-S($-O;7!O<VET951A8FQE4V5L96-T:6]N('L-
> M"@EP<FEV871E('-T871I8R!C;&%S<R!2;W<@97AT96YD<R!!8G-T <F%C=%-E
> M;&5C=&%B;&52;W<@>PT*"0EP=6)L:6,@4F]W*$-O;7!O <VET92!P87)E;G0L
> M(&EN="!S='EL92D@>PT*"0D)<W5P97(H<&%R96YT+"!S='EL92D#0H- "@D)<')O=&5C=&5D('9O:60@<V5T4V5L96-T:6]N*$]B:F5C="!M
> M;V1E;"D@>PT*"0D)<W5P97(N<V5T4V5L96-T:6]N*&UO9&5L*3L- "@D)?0T*
> M"7T-"@D-"@EP=6)L:6,@<W1A=&EC('9O:60@;6%I;BA3=')I;F=;72!A <F=S
> M*2!(&YE=R!$:7-P;&%Y*"DM<&]S:71E5&%B
> M;&4@=&%B;&4@/2!N97<@0V]M<&]S:71E5&%B;&4H <VAE;&PL(%-75"Y.54Q,
> M*3L-"@D@(" @;F5W(%)O=RAT86)L92P@4U=4+DY53$PI.PT*"2 @("!T86)L
> M92YS9712=6Y4:6UE*'1R=64I.PT*"2 @("!T86)L92YS971,:6YE<U9I<VEB
> M;&4H9F%L<V4I.PT*"2 @("!T86)L92YS971.=6U2;W=S26Y#;VQL96-T:6]N
> M*#(S,# P,"DW0V]N=&5N=%!R;W9I9&5R
> M*&YE=R!)4F]W0V]N=&5N=%!R;W9I9&5R*"D@>PT*"0D) <'5B;&EC('9O:60@
> M<F5F<F5S:"A#;VUP;W-I=&5486)L92!S96YD97(L(&EN="!C=7)R96YT3V)J
> M96-T3V9F<V5T+"!#;VYT<F]L(')O=T-O;G1R;VPI('L-"@D)"0E2;W <@<F]W
> M(#T@*%)O=RD@<F]W0V]N=')O;#L-"@D)"0E#;VYT<F]L6UT@8VAI;&1R96X@
> M/2!R;W<N9V5T0VAI;&1R96XH*3L-"@D)"0DH*$QA8F5L*6-H:6QD <F5N6S!=
> M*2YS971497AT*")+4TA44T51("(@*R!C=7)R96YT3V)J96-T3V9F<V5T*3L-
> M"@D)"7T-"@D@(" @?2D[#0H-"@D)<VAE;&PN<V5T4VEZ92@R,# L(#(P,"D[
> M#0H)"7-H96QL+F]P96XH*3L-"@D)=VAI;&4@*"%S:&5L;"YI <T1I<W!O<V5D
> M*"DI('L-"@D)"6EF("@A9&ES<&QA>2YR96%D06YD1&ES <&%T8V@H*2D-"@D)
> M"0ED:7-P;&%Y+G-L965P*"D[#0H)"7T-"@D)9&ES<&QA >2YD:7-P;W-E*"D[
> )#0H)?0T*?0T*
> `
> end
>
Re: CompositeTable selection question [message #592618 is a reply to message #60176] Tue, 21 October 2008 18:23 Go to previous message
Dave Orme is currently offline Dave Orme
Messages: 424
Registered: July 2009
Senior Member
To get the selected row, use:

table.getSelection() + table.getTopRow()

CompositeTable only cares about what it actually displays.


Regards,

Dave

On Fri, 2008-10-17 at 12:11 -0600, David Kyle wrote:
> Hi,
>
> I'm trying to use CompositeTable to handle an extremely large list of items.
> The only problem I am having is with selections. If I select the first item,
> click the scrollbar scrolldown button, the selection is now incorrect. I've
> attached a snippet that shows what happens, I'm using CompositeTable 0.9.4
> with Eclipse 3.4.1.
>
> Am I asking too much from CompositeTable to have it remember a single
> selection?
>
> I can not use exist SWT widgets with SWT.VIRTUAL because our lists are too
> large.
>
> Thanks,
> David Kyle
> http://richclientplatform.blogspot.com/
>
>
> begin 666 CompositeTableSelection.java
> M+RHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BH J
> M*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BH-"B J($-O<'ER
> M:6=H=" H8RD@,C P-B!)0DT@0V]R<&]R871I;VX@86YD(&]T:&5R<RX-"B J
> M($%L;"!R:6=H=',@<F5S97)V960N(%1H:7,@<')O9W)A;2!A;F0@=&AE(&%C
> M8V]M<&%N>6EN9R!M871E<FEA;',-"B J(&%R92!M861E(&%V86EL86)L92!U
> M;F1E<B!T:&4@=&5R;7,@;V8@=&AE($5C;&EP<V4@4'5B;&EC($QI8V5N<V4@
> M=C$N, T*("H@=VAI8V@@86-C;VUP86YI97,@=&AI<R!D:7-T<FEB=71I;VXL
> M(&%N9"!I<R!A=F%I;&%B;&4@870-"B J(&AT=' Z+R]W=W<N96-L:7!S92YO
> M<F<O;&5G86PO97!L+78Q,"YH=&UL#0H@*@T*("H@0V]N=')I8G5T;W)S.@T*
> M("H@(" @($E"32!#;W)P;W)A=&EO;B M(&EN:71I86P@05!)(&%N9"!I;7!L
> M96UE;G1A=&EO;@T*("HJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ
> M*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BH J
> M*BHO#0IP86-K86=E(&]R9RY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2!#;VUP;W-I=&5486)L93\-
> M"B J+PT*<'5B;&EC(&-L87-S($-O;7!O<VET951A8FQE4V5L96-T:6]N('L-
> M"@EP<FEV871E('-T871I8R!C;&%S<R!2;W<@97AT96YD<R!!8G-T <F%C=%-E
> M;&5C=&%B;&52;W<@>PT*"0EP=6)L:6,@4F]W*$-O;7!O <VET92!P87)E;G0L
> M(&EN="!S='EL92D@>PT*"0D)<W5P97(H<&%R96YT+"!S='EL92D#0H- "@D)<')O=&5C=&5D('9O:60@<V5T4V5L96-T:6]N*$]B:F5C="!M
> M;V1E;"D@>PT*"0D)<W5P97(N<V5T4V5L96-T:6]N*&UO9&5L*3L- "@D)?0T*
> M"7T-"@D-"@EP=6)L:6,@<W1A=&EC('9O:60@;6%I;BA3=')I;F=;72!A <F=S
> M*2!(&YE=R!$:7-P;&%Y*"DM<&]S:71E5&%B
> M;&4@=&%B;&4@/2!N97<@0V]M<&]S:71E5&%B;&4H <VAE;&PL(%-75"Y.54Q,
> M*3L-"@D@(" @;F5W(%)O=RAT86)L92P@4U=4+DY53$PI.PT*"2 @("!T86)L
> M92YS9712=6Y4:6UE*'1R=64I.PT*"2 @("!T86)L92YS971,:6YE<U9I<VEB
> M;&4H9F%L<V4I.PT*"2 @("!T86)L92YS971.=6U2;W=S26Y#;VQL96-T:6]N
> M*#(S,# P,"DW0V]N=&5N=%!R;W9I9&5R
> M*&YE=R!)4F]W0V]N=&5N=%!R;W9I9&5R*"D@>PT*"0D) <'5B;&EC('9O:60@
> M<F5F<F5S:"A#;VUP;W-I=&5486)L92!S96YD97(L(&EN="!C=7)R96YT3V)J
> M96-T3V9F<V5T+"!#;VYT<F]L(')O=T-O;G1R;VPI('L-"@D)"0E2;W <@<F]W
> M(#T@*%)O=RD@<F]W0V]N=')O;#L-"@D)"0E#;VYT<F]L6UT@8VAI;&1R96X@
> M/2!R;W<N9V5T0VAI;&1R96XH*3L-"@D)"0DH*$QA8F5L*6-H:6QD <F5N6S!=
> M*2YS971497AT*")+4TA44T51("(@*R!C=7)R96YT3V)J96-T3V9F<V5T*3L-
> M"@D)"7T-"@D@(" @?2D[#0H-"@D)<VAE;&PN<V5T4VEZ92@R,# L(#(P,"D[
> M#0H)"7-H96QL+F]P96XH*3L-"@D)=VAI;&4@*"%S:&5L;"YI <T1I<W!O<V5D
> M*"DI('L-"@D)"6EF("@A9&ES<&QA>2YR96%D06YD1&ES <&%T8V@H*2D-"@D)
> M"0ED:7-P;&%Y+G-L965P*"D[#0H)"7T-"@D)9&ES<&QA >2YD:7-P;W-E*"D[
> )#0H)?0T*?0T*
> `
> end
>
Previous Topic:Copy and Paste with NumberFormatter
Next Topic:Traverse between cells using Tab key
Goto Forum:
  


Current Time: Sat Oct 25 22:13:45 GMT 2014

Powered by FUDForum. Page generated in 0.02580 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software