On Thursday, April 5, 2012 11:58:14 AM UTC+2, Márcio Menezes wrote:
>
> Hey, guys, thanks for the answers...
>
> Thomas, I think what u said is the cause of my problem. I have two ui.xml 
> files, one for the super and another for the sub class. And I'm trying to 
> bind both and put them together in a container afterwards.. ://
> I see the limitation, "you cannot use a single class hierarchy as the 
> target for two UiBinders". But I didn't want to have to move the fields of 
> the super class to the sub or the other way around.
> What I'm trying to get is a view extending from another view. Why do I 
> want to do this? Because I have a set of views with the same visual 
> pattern, ie: "CRUD" views that need to have save and cancel button, and I 
> didn't want to repeat my self in all the sub views by re-adding the save 
> and cancel button. Nothing new... Pure O.O. concepts.
>
> Really? Isn't there a way of doing this?
>

Use composition rather than inheritance; or use the "inner class" trick I 
described earlier (that's entirely private to the super-class, so it 
shouldn't affect your subclasses).

-- 
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/-/QSD7bV1AYHcJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to