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]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
