Listen to table item changes [message #507447] |
Wed, 13 January 2010 09:30  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.08097 seconds