gwt - celltable - adding extra row

后端 未结 3 850
走了就别回头了
走了就别回头了 2021-01-07 11:37

enter code hereI have a celltable and the columns contains some numbers. I want to add an extra row at the end of the table which will hold the total for each column. Is the

3条回答
  •  北荒
    北荒 (楼主)
    2021-01-07 12:16

    public void addNewRow(){                
    
        List newContactLst = Arrays.asList(new Contact("TEST",
                  "Sample"));
    
        int numRows = table.getRowCount();
    
        table.setRowCount(numRows+1);
    
        table.setRowData(numRows,newContactLst);
    
    }
    

提交回复
热议问题