1
CellList<Device> cellList = new CellList<Device>(new ItemCell());
static class ItemCell extends AbstractCell<Device> {
@Override
public void render(Context context, Device device, SafeHtmlBuilder builder) {
if(device == null) {
return;
}
builder.appendHtmlConstant("<div>device.getId()</div>");
builder.appendHtmlConstant("<div>device.getName()</div>");
}
}
而现在,我想打一个“编辑”按钮,当我将它按 - 我想看看编辑选择的项目。我该怎么做?请回答,谁知道。
谢谢,先生。宋体。但是我有一个CellList,而不是CellTable,CellList中的方法addColumn()是什么? – Andrew 2011-03-15 12:40:51