/** * Load choices from a list. * * @param choices A list of choices. */ public void loadChoices(Iterable<String> choices) { clear(); if (choices != null) { for (String choice : choices) { addChoice(choice, false); } } checkSelection(true); }
/** * Load choices from a list. * * @param choices A list of choices. */ public void loadChoices(Iterable<String> choices) { clear(); if (choices != null) { for (String choice : choices) { addChoice(choice, false); } } checkSelection(true); }