Hi Thomas, Off course possible. just make the public void setCollapsible(boolean value) method in your GroupBox.java In general it supports java beans specification.
Sincerely, Alex On Tue, Mar 2, 2010 at 4:22 PM, Thomas Broyer <[email protected]> wrote: > > > On Feb 25, 11:34 pm, Thiago Albuquerque <[email protected]> wrote: > > Hi, > > > > I was wondering if it's possible to define custom attributes in a > UiBinder > > template. I wanted to do something like this: > > > > <my:GroupBox collapsible="true" /> > > > > > > > > And then Gwt would, after creating a new instance of 'GroupBox', call > > 'instance.setCollapsible(true)'. > > That's exactly how UiBinder works, it maps attributes to setters and > then parse the value according to the setter's argument type. The > exceptions are: some widgets have specific parsers (but you cannot > make your own, at least for the moment), and your widget can have a > @UiConstructor, in this case, attributes are first matched against the > constructor's arguments, then the remaining attributes are matched to > setters. > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-web-toolkit%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. 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.
