protected static boolean addRow ( SmartTable table , List < Widget > widgets ) { if ( widgets == null ) { return false ; } int row = table . getRowCount ( ) ; for ( int col = 0 ; col < widgets . size ( ) ; ++ col ) { table . setWidget ( row , col , widgets . get ( col ) ) ; table . getFlexCellFormatter ( ) . setStyleName ( row , col , "col" + col ) ; } return true ; }
Convenience function to append a list of widgets to a table as a new row .