Revision: 6131 Author: rj...@google.com Date: Fri Sep 11 16:41:35 2009 Log: Fixed some typoes http://code.google.com/p/google-web-toolkit/source/detail?r=6131
Modified: /wiki/UiBinder.wiki ======================================= --- /wiki/UiBinder.wiki Fri Sep 11 16:34:19 2009 +++ /wiki/UiBinder.wiki Fri Sep 11 16:41:35 2009 @@ -188,9 +188,9 @@ Note that there is no requirement that a with: class implement the ClientBundle interface, this is just an example. -=Share ImmutableResourceBundle instances= - -Extends LogoNamePanel (from the example above) to allow its bundle to be passed in. +=Share resource instances= + +Extends LogoNamePanel (from the example above) to allow the resource to be passed in. {{{ public class LogoNamePanel extends Composite { @@ -201,15 +201,15 @@ final Resources resources; public LogoNamePanel(Resources resources) { - initWidget(uiBinder.createAndBindUi(this)); this.resources = resources; + initWidget(uiBinder.createAndBindUi(this)); } public void setUserName(String userName) { nameSpan.setInnerText(userName); } - @UiFactory + @UiFactory /* this method could be static */ public Resources getResources() { return resources; } @@ -251,10 +251,9 @@ {{{ <!-- UserDashboard.ui.xml --> -< ui:UiBinder - xmlns:ui='urn:ui:com.google.gwt.uibinder' - xmlns:g='urn:import:com.google.gwt.user.client.ui' - xmlns:my='urn:import:com.my.app.widgets' > +<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' + xmlns:g='urn:import:com.google.gwt.user.client.ui' + xmlns:my='urn:import:com.my.app.widgets' > <g:HTMLPanel> <my:WeatherReport ui:field='weather'/> @@ -275,7 +274,7 @@ } }}} -An error results: +An error results: [ *line numbers unimplemented* ] {{{ @@ -381,7 +380,7 @@ =Apply different xml templates to the same widget= -You're an MVC developer. You have a nice view interface, and a templated Widget that implements it. How might you use several different xml templates for the same view? +You're an [[http://code.google.com/events/io/sessions/GoogleWebToolkitBestPractices.html][MVP]] developer. You have a nice view interface, and a templated Widget that implements it. How might you use several different xml templates for the same view? {{{ public class FooPickerController { --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~----------~----~----~----~------~----~------~--~---