public ServiceTypeList () {}
DefaultSelectionEventManager<ServiceType> customManager = DefaultSelectionEventManager.createCustomManager(new EventTranslator<ServiceType>() {
public boolean clearCurrentSelection(CellPreviewEvent<ServiceType> event) {
return false;
}
public SelectAction translateSelectionEvent(CellPreviewEvent<ServiceType> event) {
return SelectAction.TOGGLE;
}
});
MultiSelectionModel<ServiceType> multiSelectionModel = new MultiSelectionModel<ServiceType>();
CellTable<ServiceType>() cellTable = new CellTable<ServiceType>();
cellTable.setSelectionModel(multiSelectionModel, customManager);
...
}
...
}