Sorry to jump in here, but that looks almost like data bindings Ray. I missed that feature of uibinder too. I tried it out and you're able to bind from a POJO during initialization, I wonder if that could be used as a starting point to do data bindings on set and get. Thanks!
-- Arthur Kalmenson On Tue, Dec 15, 2009 at 1:08 AM, Ray Ryan <[email protected]> wrote: > It's already there. Do something like: > class ParamValuesPojo { > private final String uri; > private final String token; > ParamValuesPojo(String uri, String token) { > this.uri = uri; > this.token = token; > } > public class UploaderWidgetImplIE extends UploaderWidgetImpl { > final @UiField(provided=true) ParamValuesPojo paramValues; > UploaderWidgetImplIE(ParamValuesPojo values) { > this.paramValues = values; > setElement(binder.createAndBindUi(this)); > } > } > <ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'> > <ui:with field='paramValues' type='com.jarod.ParamValuesPojo'/> > <div> > <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" > name="Uploader" width="100%" height="350" > codebase="http://java.sun.com/update/1.6.0/jinstall-6u16- > windows-i586.cab#Version=6,0,0,1"> > <param name="code" > value="org.jets3t.apps.uploader.Uploader.class" /> > <param name="codebase" value="." /> > <param name="archive" > value="uploader-0.7.1-signed.jar,jets3t-0.7.1- > signed.jar,jets3t-gui-0.7.1-signed.jar,commons-codec-1.3- > signed.jar,commons-httpclient-3.1-signed.jar,commons-logging-1.1.1- > signed.jar" /> > <param name="type" value="application/x-java- > applet;version=1.6" /> > <param name="scriptable" value="false" /> > <param name="mayscript" value="false" /> > <param name="uri" value="{paramValues.uri}" /> > <param name="token" value="{paramValues.token}" /> > No Java Support. > </object> > </div> > </ui:UiBinder> > > -- > http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
