Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Listen to table item changes
Listen to table item changes [message #507447] Wed, 13 January 2010 09:30 Go to next message
Eclipse UserFriend
Is there a way to listen to visible table items of an SWT Table?
So that when the number of items changes a listener is informed.
(A solution with JFace table viewer would also help.)

Regards,
Kai
Re: Listen to table item changes [message #507461 is a reply to message #507447] Wed, 13 January 2010 05:02 Go to previous messageGo to next message
Eclipse UserFriend
http://tomsondev.bestsolution.at/2007/01/05/what-items-are-v isible-in-tabletree/

Am 13.01.10 15:30, schrieb Kai Schlamp:
> Is there a way to listen to visible table items of an SWT Table?
> So that when the number of items changes a listener is informed.
> (A solution with JFace table viewer would also help.)
>
> Regards,
> Kai
Re: Listen to table item changes [message #507472 is a reply to message #507461] Wed, 13 January 2010 10:40 Go to previous messageGo to next message
Eclipse UserFriend
Thanks, Tom. But I guess I was a bit imprecise with my question, my fault.
I am looking for a way to listen what items are at all inside the table. So when items are added or removed a listener is informed.

Regards,
Kai

Tom Schindl wrote on Wed, 13 January 2010 05:02
http://tomsondev.bestsolution.at/2007/01/05/what-items-are-v isible-in-tabletree/

Am 13.01.10 15:30, schrieb Kai Schlamp:
> Is there a way to listen to visible table items of an SWT Table?
> So that when the number of items changes a listener is informed.
> (A solution with JFace table viewer would also help.)
>
> Regards,
> Kai

Re: Listen to table item changes [message #507487 is a reply to message #507472] Wed, 13 January 2010 11:23 Go to previous message
Eclipse UserFriend
There's none but might I suggest to use an IObservableList
(WritableList) as your viewer input, a ObservableListContentProvider
add/remove your domain objects there on the WritableList (instead of
calling the viewer pendents) => You can then register a listener on the
WritableList and get informed.

Tom

Am 13.01.10 16:40, schrieb Kai Schlamp:
> Thanks, Tom. But I guess I was a bit imprecise with my question, my fault.
> I am looking for a way to listen what items are at all inside the table.
> So when items are added or removed a listener is informed.
>
> Regards,
> Kai
>
> Tom Schindl wrote on Wed, 13 January 2010 05:02
>> http://tomsondev.bestsolution.at/2007/01/05/what-items-are-v
>> isible-in-tabletree/
>>
>> Am 13.01.10 15:30, schrieb Kai Schlamp:
>> > Is there a way to listen to visible table items of an SWT Table?
>> > So that when the number of items changes a listener is informed.
>> > (A solution with JFace table viewer would also help.)
>> > > Regards,
>> > Kai
>
>
Previous Topic:Tip for Correct implementation to anchor a widget in the parent composite rectangle.
Next Topic:SWT Browser Control loosing focus on Enter key press
Goto Forum:
  


Current Time: Sat Jul 19 08:44:34 EDT 2025

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

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

Back to the top