コード例 #1
0
 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());
 }
コード例 #2
0
 public void updateSelectedItem() {
   updateSelection(dataProvider.getSelectedIndex());
   chosen.update();
 }