Search in sources :

Example 6 with CollectionOfItemsSource

use of org.olat.modules.qpool.ui.datasource.CollectionOfItemsSource in project openolat by klemens.

the class CollectionTreeNode method getController.

@Override
public Controller getController(UserRequest ureq, WindowControl wControl) {
    QuestionItemsSource source = new CollectionOfItemsSource(questionItemCollection, ureq.getIdentity(), ureq.getUserSession().getRoles());
    if (questionsCtrl == null) {
        WindowControl swControl = BusinessControlFactory.getInstance().createBusinessWindowControl(ureq, questionItemCollection, null, wControl, true);
        questionsCtrl = new QuestionsController(ureq, swControl, stackPanel, source, securityCallback, TABLE_PREFERENCE_PREFIX + questionItemCollection.getKey(), false);
        questionsCtrl.setQuestionItemCollection(questionItemCollection);
    } else {
        questionsCtrl.updateSource(source);
    }
    return questionsCtrl;
}
Also used : QuestionItemsSource(org.olat.modules.qpool.ui.QuestionItemsSource) WindowControl(org.olat.core.gui.control.WindowControl) QuestionsController(org.olat.modules.qpool.ui.QuestionsController) CollectionOfItemsSource(org.olat.modules.qpool.ui.datasource.CollectionOfItemsSource)

Aggregations

CollectionOfItemsSource (org.olat.modules.qpool.ui.datasource.CollectionOfItemsSource)6 QuestionItemCollection (org.olat.modules.qpool.QuestionItemCollection)4 WindowControl (org.olat.core.gui.control.WindowControl)2 QuestionItemsSource (org.olat.modules.qpool.ui.QuestionItemsSource)2 QuestionsController (org.olat.modules.qpool.ui.QuestionsController)2 EmptyItemsSource (org.olat.modules.qpool.ui.datasource.EmptyItemsSource)2