private void initResultsTable ( DeferredSelector [ ] dg , Benchmark ... benchs ) { int numRows = dg . length ; grid = new FlexTable ( ) ; grid . addStyleName ( "resultstable" ) ; RootPanel . get ( "results" ) . clear ( ) ; RootPanel . get ( "results" ) . add ( grid ) ; grid . setText ( 0 , 0 , "Selector" ) ; for ( int i = 0 ; i < benchs . length ; i ++ ) { grid . setText ( 0 , i + 1 , benchs [ i ] . getId ( ) ) ; } for ( int i = 0 ; i < numRows ; i ++ ) { grid . setText ( i + 1 , 0 , dg [ i ] . getSelector ( ) ) ; for ( int j = 0 ; j < benchs . length ; j ++ ) { grid . setText ( i + 1 , j + 1 , "-" ) ; } } }
Reset the result table