On Mar 24, 2:57 pm, perlmonkey2 <[email protected]> wrote:
> I'm looking for detailed documentation for UiBinder.
>
> http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html
> contains some clues and the JavaDocs sometimes contain useful
> examples. But I was hoping that there were detailed syntax docs
> covering all possible properties which can be defined in UiBinder.
>
> For example to declare a ListBox's multipleSelect property as false, I
> looked up the JavaDoc then started guessing on the probable UiBinder
> syntax. This is how I find most of the UiBinder syntax, but often
> there aren't enough clues.  Thus my most sincere hope that there are
> explicit lists of syntax tucked away somewhere :)

Every setXxx(T arg) method can be "called" by setting an attribute
named "xxx" on the element. The attribute's value will be parsed
according to the type of the method's argument.
If a widget implements HasText, you can put plain text inside the
element's content (between the open and close tags). If a widget
implements HasHTML, you can then put HTML.

This is the general rule, in the absence of an @UiConstructor (some
attributes will be mapped to constructor arguments) or a specific
parser, in which case the JavaDoc tells you how it works (HTMLPanel
allows nested widgets, CellPanel allows <g:cell> children, etc.

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

Reply via email to