0
A
回答
2
首先,该创建单元表之后创建这样
public class MyObject{
private CheckBox checkBox;
private HTML html;
public Contact(CheckBox checkBox, HTML html) {
this.checkBox = checkBox;
this.html = html;
}
// getter & setter
}
类
CellTable<MyObject> cellTable = new CellTable<MyObject>();
然后创建列
TextColumn<MyObject> firstColumn = new TextColumn<MyObject>() {
@Override
public CheckBox getValue(MyObject object) {
return object.getCheckBox;
}
};
cellTable.addColumn(firstColumn , "Checkbox");
和第二列
TextColumn<MyObject> secondColumn = new TextColumn<MyObject>() {
@Override
public HTML getValue(MyObject object) {
return object.getHtml;
}
};
cellTable.addColumn(secondColumn , "HTML");
相关问题
- 1. GWT - celltable
- 2. GWT - celltable
- 3. GWT CellTable排序
- 4. GWT CellTable验证
- 5. GWT Celltable reset
- 6. GWT CellTable与UIBinder
- 7. gwt celltable寻呼
- 8. GWT Celltable和TABbing
- 9. GWT RequestFactory + CellTable
- 10. GWT CellTable wordwrap
- 11. Celltable GWT排序
- 12. GWT Celltable fixed columns
- 13. GWT CellTable人口
- 14. GWT CellTable样式
- 15. GWT CellTable与ImageResourceCell
- 16. GWT 2.4 CellTable问题
- 17. GWT CellTable或类似
- 18. GWT CellTable OnClick问题
- 19. GWT CellTable Cells readOnly/disabled/non-editable
- 20. GWT - 如何分类celltable列?
- 21. GWT样式CellTable标头
- 22. 将GWT ImageCell插入CellTable
- 23. GWT - 使CellTable Cell使用HTML?
- 24. GWT CellTable和编辑框架
- 25. GWT Celltable调整大小
- 26. GWT CellTable输入验证
- 27. GWT:如何获得cellTable
- 28. GWT Celltable只显示15行
- 29. GWT 2.5.1 CellTable和SimplePager问题
- 30. CellTable中的GWT填充行