private void renderOption ( final WMultiSelect listBox , final Object option , final int optionIndex , final XmlStringBuilder html , final List < ? > selections , final boolean renderSelectionsOnly ) { boolean selected = selections . contains ( option ) ; if ( selected || ! renderSelectionsOnly ) { // Get Code and Desc String code = listBox . getCode ( option , optionIndex ) ; String desc = listBox . getDesc ( option , optionIndex ) ; // Render Option html . appendTagOpen ( "ui:option" ) ; html . appendAttribute ( "value" , code ) ; html . appendOptionalAttribute ( "selected" , selected , "true" ) ; html . appendClose ( ) ; html . appendEscaped ( desc ) ; html . appendEndTag ( "ui:option" ) ; } }
Renders a single option within the list box .