Thursday, January 3, 2013

Re: How to add optional parameters for ui-binder?



On Thursday, January 3, 2013 1:56:13 PM UTC+1, membersound wrote:
Hi,

when looking at eg VerticalPanel, I can provide optional parameters like width and height via ui-binder.

I only found @UiConstructor, but this would force the ui:binder to provide the parameters for the constructor annotated like this.
How can I create these kind of additional parameters for my own Composites?

Any attribute will call the setter for the property of the same name. Is that what you're looking for?
See http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/ui/UIObject.html 

--
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/-/CXsLlNV4BNwJ.
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