Revision: 8704
Author: r...@google.com
Date: Thu Sep 2 09:08:23 2010
Log: Missing file from SafeHtml work + whitespace fix
http://code.google.com/p/google-web-toolkit/source/detail?r=8704
Modified:
/trunk/samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/SortableHeader.java
/trunk/samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCellList.java
=======================================
---
/trunk/samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/SortableHeader.java
Thu Sep 2 08:33:16 2010
+++
/trunk/samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/SortableHeader.java
Thu Sep 2 09:08:23 2010
@@ -1,12 +1,12 @@
/*
* Copyright 2010 Google Inc.
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License"); you may
not
* use this file except in compliance with the License. You may obtain a
copy of
* the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
=======================================
---
/trunk/samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCellList.java
Tue Aug 17 10:14:36 2010
+++
/trunk/samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCellList.java
Thu Sep 2 09:08:23 2010
@@ -23,6 +23,7 @@
import com.google.gwt.i18n.client.Constants;
import com.google.gwt.resources.client.ClientBundle;
import com.google.gwt.resources.client.ImageResource;
+import com.google.gwt.safehtml.shared.SafeHtmlBuilder;
import com.google.gwt.sample.showcase.client.ContentWidget;
import
com.google.gwt.sample.showcase.client.ShowcaseAnnotations.ShowcaseData;
import
com.google.gwt.sample.showcase.client.ShowcaseAnnotations.ShowcaseRaw;
@@ -88,31 +89,25 @@
}
@Override
- public void render(ContactInfo value, Object key, StringBuilder sb) {
- // Value can be null, so do a null check.
+ public void render(ContactInfo value, Object key, SafeHtmlBuilder sb) {
+ // Value can be null, so do a null check..
if (value == null) {
return;
}
- sb.append("<table>");
+ sb.appendHtmlConstant("<table>");
// Add the contact image.
- sb.append("<tr><td rowspan='3'>");
- sb.append(imageHtml);
- sb.append("</td>");
-
- // Add the name.
- sb.append("<td style='font-size:95%;'>");
- sb.append(value.getFullName());
- sb.append("</td>");
- sb.append("</tr>");
-
- // Add the address.
- sb.append("<tr><td>");
- sb.append(value.getAddress());
- sb.append("</td></tr>");
-
- sb.append("</table>");
+ sb.appendHtmlConstant("<tr><td rowspan='3'>");
+ sb.appendHtmlConstant(imageHtml);
+ sb.appendHtmlConstant("</td>");
+
+ // Add the name and address.
+ sb.appendHtmlConstant("<td style='font-size:95%;'>");
+ sb.appendEscaped(value.getFullName());
+ sb.appendHtmlConstant("</td></tr><tr><td>");
+ sb.appendEscaped(value.getAddress());
+ sb.appendHtmlConstant("</td></tr></table>");
}
}
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors