Skip to main content



      Home
Home » Eclipse Projects » Eclipse 4 » Retrieving a child datacontext
Retrieving a child datacontext [message #579175] Thu, 22 July 2010 21:21 Go to next message
Eclipse UserFriend
Hello,

I have an XWT AddressForm. I now place a child XWT composite NameForm on the AddressForm. Because the NameForm is independent, there is no inheritance connection to AddressForm as we are accustomed to in ganymede.

Question: How do I retrieve the context of an XWT child composite (NameForm) from the code-behind of the parent (AddressForm).

Also, we yearn for some detail documentation on XWT.

Thanks

St Clair
Re: Retrieving a child datacontext [message #579425 is a reply to message #579175] Sat, 24 July 2010 09:56 Go to previous message
Eclipse UserFriend
You should first find the child by the name and then call the method
XWT.getDataConetxt()
Composite child = (Composite ) XWT.findElementByName(content,
"NameForm");
Object dataContext = XWT.getDataConetxt(child);

Best regards
Yves YANG
"St Clair Clarke" <st_clair@flowja.com> wrote in message
news:i2aqrf$5ok$1@build.eclipse.org...
> Hello,
>
> I have an XWT AddressForm. I now place a child XWT composite NameForm on
> the AddressForm. Because the NameForm is independent, there is no
> inheritance connection to AddressForm as we are accustomed to in ganymede.
>
> Question: How do I retrieve the context of an XWT child composite
> (NameForm) from the code-behind of the parent (AddressForm).
> Also, we yearn for some detail documentation on XWT.
>
> Thanks
>
> St Clair
Previous Topic:Retrieving a child datacontext
Next Topic:AddOn gets the wrong shell
Goto Forum:
  


Current Time: Fri Jul 04 23:57:33 EDT 2025

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

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

Back to the top