use of org.olat.modules.qpool.ui.datasource.TaxonomyLevelItemsSource in project OpenOLAT by OpenOLAT.
the class QuestionListController method doChooseNewItemType.
private void doChooseNewItemType(UserRequest ureq) {
removeAsListenerAndDispose(newItemOptionsCtrl);
if (getSource() instanceof TaxonomyLevelItemsSource) {
TaxonomyLevelItemsSource tliSource = (TaxonomyLevelItemsSource) getSource();
newItemOptionsCtrl = new NewItemOptionsController(ureq, getWindowControl(), getSecurityCallback(), tliSource.getTaxonomyLevel(), getSource().isAdminItemSource());
} else {
newItemOptionsCtrl = new NewItemOptionsController(ureq, getWindowControl(), getSecurityCallback(), getSource().isAdminItemSource());
}
listenTo(newItemOptionsCtrl);
removeAsListenerAndDispose(cmc);
cmc = new CloseableModalController(getWindowControl(), translate("close"), newItemOptionsCtrl.getInitialComponent(), true, translate("new.item"));
cmc.activate();
listenTo(cmc);
}
use of org.olat.modules.qpool.ui.datasource.TaxonomyLevelItemsSource in project openolat by klemens.
the class QuestionListController method doChooseNewItemType.
private void doChooseNewItemType(UserRequest ureq) {
removeAsListenerAndDispose(newItemOptionsCtrl);
if (getSource() instanceof TaxonomyLevelItemsSource) {
TaxonomyLevelItemsSource tliSource = (TaxonomyLevelItemsSource) getSource();
newItemOptionsCtrl = new NewItemOptionsController(ureq, getWindowControl(), getSecurityCallback(), tliSource.getTaxonomyLevel(), getSource().isAdminItemSource());
} else {
newItemOptionsCtrl = new NewItemOptionsController(ureq, getWindowControl(), getSecurityCallback(), getSource().isAdminItemSource());
}
listenTo(newItemOptionsCtrl);
removeAsListenerAndDispose(cmc);
cmc = new CloseableModalController(getWindowControl(), translate("close"), newItemOptionsCtrl.getInitialComponent(), true, translate("new.item"));
cmc.activate();
listenTo(cmc);
}
Aggregations