Search in sources :

Example 1 with EPTagsController

use of org.olat.portfolio.ui.artefacts.edit.EPTagsController in project OpenOLAT by OpenOLAT.

the class EPArtefactViewOptionsLinkController method event.

@Override
protected void event(UserRequest ureq, Component source, Event event) {
    if (source == optionLink) {
        popUpArtefactOptionsBox(ureq);
    } else if (source == unlinkLink) {
        closeArtefactOptionsCallout();
        struct = ePFMgr.removeArtefactFromStructure(artefact, struct);
        // refresh ui
        fireEvent(ureq, new EPStructureChangeEvent(EPStructureChangeEvent.REMOVED, struct));
    } else if (source == moveLink) {
        closeArtefactOptionsCallout();
        showMoveTree(ureq);
    } else if (source == reflexionLink) {
        closeArtefactOptionsCallout();
        reflexionCtrl = new EPReflexionWrapperController(ureq, getWindowControl(), secCallback, artefact, struct);
        listenTo(reflexionCtrl);
    } else if (source == tagsLink) {
        closeArtefactOptionsCallout();
        tagsCtrl = new EPTagsController(ureq, getWindowControl(), secCallback, artefact, struct);
        listenTo(tagsCtrl);
    }
}
Also used : EPTagsController(org.olat.portfolio.ui.artefacts.edit.EPTagsController) EPReflexionWrapperController(org.olat.portfolio.ui.artefacts.edit.EPReflexionWrapperController) EPStructureChangeEvent(org.olat.portfolio.ui.structel.EPStructureChangeEvent)

Example 2 with EPTagsController

use of org.olat.portfolio.ui.artefacts.edit.EPTagsController in project openolat by klemens.

the class EPArtefactViewOptionsLinkController method event.

@Override
protected void event(UserRequest ureq, Component source, Event event) {
    if (source == optionLink) {
        popUpArtefactOptionsBox(ureq);
    } else if (source == unlinkLink) {
        closeArtefactOptionsCallout();
        struct = ePFMgr.removeArtefactFromStructure(artefact, struct);
        // refresh ui
        fireEvent(ureq, new EPStructureChangeEvent(EPStructureChangeEvent.REMOVED, struct));
    } else if (source == moveLink) {
        closeArtefactOptionsCallout();
        showMoveTree(ureq);
    } else if (source == reflexionLink) {
        closeArtefactOptionsCallout();
        reflexionCtrl = new EPReflexionWrapperController(ureq, getWindowControl(), secCallback, artefact, struct);
        listenTo(reflexionCtrl);
    } else if (source == tagsLink) {
        closeArtefactOptionsCallout();
        tagsCtrl = new EPTagsController(ureq, getWindowControl(), secCallback, artefact, struct);
        listenTo(tagsCtrl);
    }
}
Also used : EPTagsController(org.olat.portfolio.ui.artefacts.edit.EPTagsController) EPReflexionWrapperController(org.olat.portfolio.ui.artefacts.edit.EPReflexionWrapperController) EPStructureChangeEvent(org.olat.portfolio.ui.structel.EPStructureChangeEvent)

Aggregations

EPReflexionWrapperController (org.olat.portfolio.ui.artefacts.edit.EPReflexionWrapperController)2 EPTagsController (org.olat.portfolio.ui.artefacts.edit.EPTagsController)2 EPStructureChangeEvent (org.olat.portfolio.ui.structel.EPStructureChangeEvent)2