我有一個CellTable需要不同類型的子行;類似於http://showcase2.jlabanca-testing.appspot.com/#!CwCustomDataGrid在GWT CellTable上添加一個子行
我不想使用DataGrid,因爲我知道它具有固定的高度,並且我的表格看起來更好,並具有動態高度。
我試圖擴大CellTable然後寫
public void renderRowValues(SafeHtmlBuilder sb,
java.util.List<ShipmentLeg> values,
int start,
SelectionModel<? super ShipmentLeg> selectionModel){
super.renderRowValues(sb, values, start, selectionModel);
GWT.log("HELLO");
}
什麼是實現一個很好的策略?注:在此代碼GWT.log不會被調用作爲一個超級棄用引發錯誤
乾杯