Tightly Coupling Parent-Children Tableviewers [message #538435] |
Mon, 07 June 2010 15:46 |
Eclipse User |
|
|
|
Originally posted by: natgross.ATgmail.com
Hi;
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
Customers--->Orders--->orderLines....)
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
children.
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.
nat
|
|
|
|
|
Re: Tightly Coupling Parent-Children Tableviewers [message #538725 is a reply to message #538682] |
Tue, 08 June 2010 13:17 |
Eclipse User |
|
|
|
Originally posted by: natgross.ATgmail.com
On Tue, 08 Jun 2010 17:43:56 +0530, vijay wrote:
> again a JFACE question in an SWT forum...
>
> althou discussion would be intresting but i would like it to be moved to
> JFACE...
>
> will join u there... :)
Hey! I didn't know there was a jface specific forum! Thanks!
|
|
|
|
Powered by
FUDForum. Page generated in 0.02847 seconds