How to remove a row from the Cell Table

后端 未结 3 1060
臣服心动
臣服心动 2020-12-18 08:35

At first I used the Grid. After creating a new version of the GWT, I want to replace the Grid on the CellTable.

3条回答
  •  清酒与你
    2020-12-18 09:24

    Or you can just run the cycle like that

    @UiHandler("combo") 
    public void onChange(ChangeEvent e) {
        textBoxes.clear();
        searchFields.clear();
        while(resultsTable.getColumnCount()!=0) {
            resultsTable.removeColumn(0);
        }
        resultsTable.redraw();
    

    Where resultsTable is a CellTable

提交回复
热议问题