我有一個GWT CellTable<MyType>
。這個表格有行,應該顯示CheckBox
。這CheckBox
應該選中或取消選中,取決於MyType
中的吸氣劑,但它應該禁用,因此用戶不能點擊它。有人知道如何實施?禁用CellTable中的CheckboxCell
一些代碼片段:
Column<MyType, Boolean> checkboxColumn = new Column<MyType, Boolean>(new CheckboxCell()) {
@Override
public Boolean getValue(MyType object) {
return object.isItTrue();
}
};
CellTable<MyType> cellTable = new CellTable<MyType>();
cellTable.addColumn(checkboxColumn, "Header title");