Column<ItemListProxy, Hyperlink> linkColumn = new Column<ItemListProxy, Hyperlink>(new HyperlinkCell())
{
@Override
public Hyperlink getValue(ItemListProxy list)
{
String proxyToken = clientFactory.getRequestFactory().getHistoryToken(list.stableId());
String historyToken = clientFactory.getHistoryMapper().getToken(new EditListPlace(proxyToken));
Hyperlink h = new Hyperlink(list.getName(),historyToken);
return h;
}
};
cellTable.addColumn(linkColumn, "Edit");
and HyperlinkCell:
public class HyperlinkCell extends AbstractCell<Hyperlink>
{
@Override
public void render(com.google.gwt.cell.client.Cell.Context context,
Hyperlink h, SafeHtmlBuilder sb)
{
// WARNING Make sure there's no user-provided content in your link!
sb.append(SafeHtmlUtils.fromTrustedString(h.toString()));
}
}
final ListwidgetRequestFactory req = clientFactory.getRequestFactory();
EntityProxyId<ItemListProxy> proxyId = req.getProxyId(this.itemListToken);
HasData<SomeProxy> getSomeProxyDisplay();
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.