I am trying to use GWT's UiBinder scheme - which should simplify things in creating UI's.
The problem is that I just cannot find any documentation listing each Widget's attribute set that can be spec开发者_Go百科ified in the ui.xml file.
Is there such a listing and if yes, can someone point me to it?
Thanks.
Have a look at http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html. There it is written:
Every one of the widget's methods that follow JavaBean-style conventions for setting a property can be used this way.
Simply put: Every setter method can be used as attribute in the ui.xml
without the set
. E.g., there is a setText(String)
method in TextField
so you can call this method by writing
<g:TextField ... text="foo" />
Hope that helps.
精彩评论