public void setSelection ( String [ ] selection ) { for ( String sel : selection ) { for ( int j = 0 ; j < mItems . length ; ++ j ) { if ( mItems [ j ] . equals ( sel ) ) { mSelection [ j ] = true ; } } } refreshDisplayValue ( ) ; }
Sets the selected options based on an array of string .