Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Listen to table item changes
Listen to table item changes [message #507447] Wed, 13 January 2010 14:30 Go to next message
Kai Schlamp is currently offline Kai SchlampFriend
Messages: 344
Registered: July 2009
Senior Member
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 10:02 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
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 15:40 Go to previous messageGo to next message
Kai Schlamp is currently offline Kai SchlampFriend
Messages: 344
Registered: July 2009
Senior Member
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 16:23 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
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: Wed Dec 04 15:56:28 GMT 2024

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

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

Back to the top