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>");
}
}现在,我想做一个“编辑”按钮,当我按下它的时候-我想看到可编辑的选定项目。我该怎么做呢?请回答,谁知道呢。
发布于 2012-01-06 15:29:50
我沿用了简单的老方法。
我使用了一个单元格列表和一个附加到它的表单。每次单击一行时,都会将行的数据加载到表单中。您现在可以通过此表单删除或编辑所选行。
https://stackoverflow.com/questions/5310302
复制相似问题