private void addListItems ( final WDefinitionList list ) { // Example of adding multiple data items at once. list . addTerm ( "Colours" , new WText ( "Red" ) , new WText ( "Green" ) , new WText ( "Blue" ) ) ; // Example of adding multiple data items using multiple calls. list . addTerm ( "Shapes" , new WText ( "Circle" ) ) ; list . addTerm ( "Shapes" , new WText ( "Square" ) , new WText ( "Triangle" ) ) ; }
Adds some items to a definition list .