How to add optional parameters for ui-binder?

50 views
Skip to first unread message

membersound

unread,
Jan 3, 2013, 7:56:13 AM1/3/13
to google-we...@googlegroups.com
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?

Thomas Broyer

unread,
Jan 3, 2013, 8:49:54 AM1/3/13
to google-we...@googlegroups.com
Any attribute will call the setter for the property of the same name. Is that what you're looking for?

membersound

unread,
Jan 3, 2013, 8:54:16 AM1/3/13
to google-we...@googlegroups.com
Ok I see, so just by providing setter methods I can add optional params. Thanks, exactly what I was looking for.
Reply all
Reply to author
Forward
0 new messages