Re: extending uiBinder - give support to 3rd party GUI JavaScript toolkits
Nino, thank you for you comments. Finnaly I was able to create a simple GWT Widget class hierarchy that wrap my YUI widgets, extending Composite class. So I'm using widgets minimally, but not events - if the user wants events support then it should use the YUI Event API in its .java files, not GWT's.
At this time I can write my yui widgets in UIBinder's XML without trouble. The only bad thing is the following.
My yui widgets are instantiated using a YUIContext object (a JSO) . (it is a porting based 100% on overlay types). So my GWT widget wrappers need access to this object. The bad thing is that I cannot find a way to pass that object from UIBinder markup to my children YUI wrapped widgets. Currently I'm using a static field for storing this object, and the user is responsible of setting it statically before rendering anything with uibinder , and all my widgets classes uses this static property internally for the native instantiation.
Question: There is any way of telling uibinder root widget to automatically pass an object to its childrens, or automatically call a setter on its childs for setting this object (automatically)?
Regards, hope I made myself clear.
P/S: I'm just starting with UIBinder , the lack of UIBinder documentation make it strange how well this technology is adopted.
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/VZGnzOGhmUcJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home