I'm looking at the CellList demo, the AbstractCell implementation is generating raw html strings for a cell presentation implementation:
static class ContactCell extends AbstractCell<ContactInfo> {
...
@Override
public void render(Context context, ContactInfo value, SafeHtmlBuilder sb) {
sb.appendHtmlConstant("<table>");
// 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>");
}
}
is this the recommended way to go? Is there no way to use any of the panel classes to implement the cell presentation? I was thinking we could provide something like a VerticalPanel etc to stay within GWT land.