private WRow createRow ( final int hgap , final int [ ] colWidths ) { WRow row = new WRow ( hgap ) ; for ( int i = 0 ; i < colWidths . length ; i ++ ) { WColumn col = new WColumn ( colWidths [ i ] ) ; WPanel box = new WPanel ( WPanel . Type . BOX ) ; box . add ( new WText ( colWidths [ i ] + "%" ) ) ; col . add ( box ) ; row . add ( col ) ; } return row ; }
Creates a row containing columns with the given widths .