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 wordwrap
- 3. GWT CellTable樣式
- 4. GWT Celltable reset
- 5. Celltable GWT排序
- 6. GWT CellTable排序
- 7. GWT CellTable與ImageResourceCell
- 8. GWT RequestFactory + CellTable
- 9. GWT 2.4 CellTable問題
- 10. CellTable GWT RPC匹配數據
- 11. GWT - 使CellTable Cell使用HTML?
- 12. GWT CellTable - 設置列寬
- 13. CellTable中的GWT填充行
- 14. GWT - CellTable/DataGrid使用ImageCell
- 15. GWT CellTable和編輯框架
- 16. GWT樣式CellTable標頭
- 17. GWT CellTable CheckboxCell在IE8中不工作
- 18. GWT:在TabPanel裏面的FlowPanel中的CellTable
- 19. GWT celltable如何在edittextcell中創建selectcell?
- 20. GWT:如何在CellTable上實現過濾?
- 21. Gwt celltable在列上調用排序
- 22. GWT CellTable:添加/刪除CellTable中的一行
- 23. GWT CELLTABLE:如何設置celltable header上的降序圖標?
- 24. GWT Celltable:如何避免在Celltable的特定單元格中輸入特定值?
- 25. GWT 2.1 CellTable列標題點擊事件
- 26. GWT UiBinder CellTable不是用AsyncDataProvider呈現的
- 27. GWt 2.2.0凍結CellTable中的標題行
- 28. GWT 2.1 CellTable僅顯示加載條
- 29. 等待GWT中CellTable的數據
- 30. GWT中的超鏈接單元格CellTable