I have a series of custom components constructed using uibinder. The custom components can embed other custom components also built using uibinder. The components render perfectly but custom components which require events to be sunk are not getting sunk. This is because the components extend composite which does not implement HasWidgets. To get around this, the custom components implement there own attach/detach methods which delegate to onattach/ondetach to sink the events. If the composite has children it calls the attach/detach methods for those children. I tried to use the same mechanism as complex panel but gave up because the orphan method call the setParent method on widget which is package protected.
So! I'd rather not do what I have done, so the question is, is there anything in GWT 2.5 (or beyond) which will do this for me. i.e. can I at some point in the future, create custom components using uibinder, which can embed other custom components which also use uibinder and have onattach/ondetach called on the children to sink the events.
-- 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/-/57regSiwfq4J.
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.
No comments:
Post a Comment