}
}
public static void resetMultipleSelection(final FormSelectListModel model) {
Object item;
FormOption option;
ListSelectionModel selectionModel = model.getSelectionModel();
selectionModel.clearSelection();
for (int i = 0; i < model.getSize(); i++) {
item = model.getElementAt(i);
if (item instanceof FormOption) {
option = (FormOption) item;
selectElement(option, true, true);
if (option.isSelected()) {
selectionModel.addSelectionInterval(i, i);
}
}
}
}