@ Override protected void preparePaintComponent ( final Request request ) { if ( ! isInitialised ( ) ) { MyData data = new MyData ( "Homer" ) ; basic . setData ( data ) ; List < MyData > dataList = new ArrayList <> ( ) ; dataList . add ( new MyData ( "Homer" ) ) ; dataList . add ( new MyData ( "Marge" ) ) ; dataList . add ( new MyData ( "Bart" ) ) ; repeated . setBeanList ( dataList ) ; dataList = new ArrayList <> ( ) ; dataList . add ( new MyData ( "Greg" ) ) ; dataList . add ( new MyData ( "Jeff" ) ) ; dataList . add ( new MyData ( "Anthony" ) ) ; dataList . add ( new MyData ( "Murray" ) ) ; repeatedLink . setData ( dataList ) ; List < List < MyData > > rootList = new ArrayList <> ( ) ; List < MyData > subList = new ArrayList <> ( ) ; subList . add ( new MyData ( "Ernie" ) ) ; subList . add ( new MyData ( "Bert" ) ) ; rootList . add ( subList ) ; subList = new ArrayList <> ( ) ; subList . add ( new MyData ( "Starsky" ) ) ; subList . add ( new MyData ( "Hutch" ) ) ; rootList . add ( subList ) ; nestedRepeaterTab . setData ( rootList ) ; setInitialised ( true ) ; } }
Override preparePaint to initialise the data the first time through .