|Tightly Coupling Parent-Children Tableviewers [message #538435]
||Mon, 07 June 2010 15:46
Originally posted by: natgross.ATgmail.com|
I am looking for an abstract solution for Master-Detail (Parent-child)
tables. When a TableViewer is designated as a parent it should notify
it's children TableViewers upon row change, and the child table should
then display only child records of the current row in the parent.
It seems to me very simple, had I known the api thoroughly. (I think that
a TreeViewer has this ability built in and should be able to be used for
tables as well, but again, I can't nail it down.)
There are two key scenarios (in my case) as to where the data is coming
from to feed setInput().
(This needs to traverse multiple levels, like
1: Where the parent has Collection(s) of the data that its children
require and is only a matter of automatically setting the input on the
2: Where the parent needs to notify the child of the current row's data
and its up to the child to fetch the constrained data.
Although I have done this manually in the past (via line change
listeners), this requirement of master-detail keeps on popping up and its
time I had a generic solution.
Thank you all for your suggestions.
Powered by FUDForum
. Page generated in 0.04938 seconds