private void recreateChosen() { if (chosen != null) chosenPlace.clear(); chosen = new ChosenListBox(false); chosenPlace.add(chosen); chosen.addChosenChangeHandler(getNewHandler()); chosen.setEnabled(enabled); if (dataProvider.isDataGroupable()) updateChosenMap(dataProvider.getLastLoadedFilteredMap()); else updateChosenList(dataProvider.getLastLoadedFilteredList()); updateSelection(dataProvider.getSelectedIndex()); }
public void updateSelectedItem() { updateSelection(dataProvider.getSelectedIndex()); chosen.update(); }