开发者

GWT - celltable

开发者 https://www.devze.com 2023-03-21 03:09 出处:网络
I have a c开发者_JS百科elltable which contains numbers in each column. Is there a way to add an extra row at the end of the celltable..which will show the sum of each column?

I have a c开发者_JS百科elltable which contains numbers in each column. Is there a way to add an extra row at the end of the celltable..which will show the sum of each column?

Thanks


Yes, the celltable has this constructor

 void   addColumn(Column<T,?> col, Header<?> header, Header<?> footer) 
          Adds a column to the table with an associated header and footer.

You can pass in your customr footer that sums up the values for all the rows.

0

精彩评论

暂无评论...
验证码 换一张
取 消