Hi, I would like to put ScrollPanel into AbstractCell. Is it possible?
I have creating html table now in render method. I would like to put
there scroll panel with checkboxes, if it is possilbe. Thanks for all
replies.
private static class ContentWidgetCell extends
AbstractCell<ContentWidget> {
public ContentWidgetCell() {
// cell responds to change events.
super("change");
}
@Override
public void render(ContentWidget value, Object key,
SafeHtmlBuilder
sb) {
if (value != null) {
if (value instanceof GenderWidget) {
GenderWidget tempValue = (GenderWidget)
value;
sb.appendHtmlConstant("<table>");
for (Gender g : tempValue.getGenders())
{
sb.appendHtmlConstant("<tr><td
valign=\"top\">");
sb.appendHtmlConstant("<input
type=\"checkbox\" />");
sb.appendHtmlConstant("</td><td>");
// Display the name of gender
sb.appendHtmlConstant("<div
style=\"padding-left:10px;\">");
sb.appendEscaped(g.getName());
sb.appendHtmlConstant("</div>");
sb.appendHtmlConstant("</td></tr>");
}
sb.appendHtmlConstant("</table>");
} else {
sb.appendEscaped(value.getName());
}
}
}
...
--
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.