/** * Sets the list items as selected / not selected based on the indices in an array. * * @param indices Array containing the selected indices. */ public void setSelectedIndices(int[] indices) { if (indices.length > 0) { list.setSelectedIndex(indices[0]); } }