[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform] Re: [Databinding] bindlist() with filter

Brad Reynolds schrieb:
Peter Maas wrote:

I'm trying to solve the following problem: A list containing objects of
different classes has to be synchronized with some GUI elements. There is
a one-to-one correspondence between classes and GUI elements: Each GUI
element shows objects of one class only.

Can you go into more detail on what is in the list and what are the GUI elements?

The list contains objects of different classes, e.g.

class person
   firstname
   lastname

class employee extends person
   salary

etc.

The GUI elements are tables, one with two columns showing persons, the other
with three columns showing employees etc. My goal is to have a databinding
from the list to the tables where e.g. the binding to the employees table
only looks at the employee items of the list.

My first approach was to use BindSpec/IConverter for filtering until I
discovered that implementing BindSpec for ListBinding is on the To Do list :)
Could conversion be used for filtering list elements of different classes?

--
Gruesse/Regards,

Peter Maas, Aachen
E-mail "cC5tYWFzQG1hZ21hc29mdC5kZQ==\n".decode("base64")