Search in sources :

Example 41 with CloseableCalloutWindowController

use of org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController in project openolat by klemens.

the class EPAddArtefactController method initAddLinkPopup.

private void initAddLinkPopup(UserRequest ureq) {
    if (addPage == null)
        initAddPageVC();
    String title = translate("add.artefact");
    removeAsListenerAndDispose(calloutCtr);
    calloutCtr = new CloseableCalloutWindowController(ureq, getWindowControl(), addPage, addBtn, title, true, null);
    listenTo(calloutCtr);
    calloutCtr.activate();
}
Also used : CloseableCalloutWindowController(org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController)

Example 42 with CloseableCalloutWindowController

use of org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController in project openolat by klemens.

the class FileArtefactDetailsController method popupUploadCallout.

private void popupUploadCallout(UserRequest ureq) {
    removeAsListenerAndDispose(fileUploadCtrl);
    fileUploadCtrl = new EPCreateFileArtefactStepForm00(ureq, getWindowControl(), fArtefact);
    listenTo(fileUploadCtrl);
    removeAsListenerAndDispose(calloutCtrl);
    calloutCtrl = new CloseableCalloutWindowController(ureq, getWindowControl(), fileUploadCtrl.getInitialComponent(), uploadLink, fArtefact.getTitle(), true, null);
    calloutCtrl.addDisposableChildController(fileUploadCtrl);
    listenTo(calloutCtrl);
    calloutCtrl.activate();
}
Also used : EPCreateFileArtefactStepForm00(org.olat.portfolio.ui.artefacts.collect.EPCreateFileArtefactStepForm00) CloseableCalloutWindowController(org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController)

Example 43 with CloseableCalloutWindowController

use of org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController in project openolat by klemens.

the class TextArtefactDetailsController method instantiateCalloutController.

private void instantiateCalloutController(UserRequest ureq, Component content, Link button) {
    removeAsListenerAndDispose(calloutCtrl);
    String title = translate("textartefact.edit.title");
    calloutCtrl = new CloseableCalloutWindowController(ureq, getWindowControl(), content, button, title, true, null);
    listenTo(calloutCtrl);
    calloutCtrl.activate();
}
Also used : CloseableCalloutWindowController(org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController)

Example 44 with CloseableCalloutWindowController

use of org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController in project openolat by klemens.

the class EPArtefactViewController method instantiateCalloutController.

/**
 * re-use the same callout-controller, as there can be only one anyway
 * @param ureq
 * @param content
 * @param button
 */
private void instantiateCalloutController(UserRequest ureq, Component content, FormLink button) {
    removeAsListenerAndDispose(calloutCtrl);
    calloutCtrl = new CloseableCalloutWindowController(ureq, getWindowControl(), content, button, artefact.getTitle(), true, null);
    listenTo(calloutCtrl);
    calloutCtrl.activate();
}
Also used : CloseableCalloutWindowController(org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController)

Example 45 with CloseableCalloutWindowController

use of org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController in project openolat by klemens.

the class EPArtefactViewOptionsLinkController method popUpArtefactOptionsBox.

/**
 * opens the callout
 * @param ureq
 */
private void popUpArtefactOptionsBox(UserRequest ureq) {
    VelocityContainer artOptVC = createVelocityContainer("artefactOptions");
    if (secCallback.canRemoveArtefactFromStruct()) {
        unlinkLink = LinkFactory.createCustomLink("unlink.link", "remove", "remove.from.map", Link.LINK, artOptVC, this);
    }
    if (secCallback.canAddArtefact() && secCallback.canRemoveArtefactFromStruct() && secCallback.isOwner()) {
        // isOwner: don't show move in group maps!
        moveLink = LinkFactory.createCustomLink("move.link", "move", "artefact.options.move", Link.LINK, artOptVC, this);
    }
    reflexionLink = LinkFactory.createCustomLink("reflexion.link", "reflexion", "table.header.reflexion", Link.LINK, artOptVC, this);
    if (secCallback.canEditTags()) {
        tagsLink = LinkFactory.createCustomLink("tags.link", "tags", "artefact.tags", Link.LINK, artOptVC, this);
    }
    String title = translate("option.link");
    removeAsListenerAndDispose(artefactOptionCalloutCtrl);
    artefactOptionCalloutCtrl = new CloseableCalloutWindowController(ureq, getWindowControl(), artOptVC, optionLink, title, true, null);
    listenTo(artefactOptionCalloutCtrl);
    artefactOptionCalloutCtrl.activate();
}
Also used : CloseableCalloutWindowController(org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController) VelocityContainer(org.olat.core.gui.components.velocity.VelocityContainer)

Aggregations

CloseableCalloutWindowController (org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController)122 VelocityContainer (org.olat.core.gui.components.velocity.VelocityContainer)12 FormLink (org.olat.core.gui.components.form.flexible.elements.FormLink)8 ArrayList (java.util.ArrayList)6 List (java.util.List)6 Component (org.olat.core.gui.components.Component)6 Link (org.olat.core.gui.components.link.Link)6 Identity (org.olat.core.id.Identity)6 RepositoryEntry (org.olat.repository.RepositoryEntry)6 RepositoryEntrySmallDetailsController (org.olat.repository.ui.author.RepositoryEntrySmallDetailsController)6 UserSearchController (org.olat.admin.user.UserSearchController)4 CalloutSettings (org.olat.core.gui.control.generic.closablewrapper.CalloutSettings)4 NamingException (javax.naming.NamingException)2 LdapContext (javax.naming.ldap.LdapContext)2 KalendarRenderWrapper (org.olat.commons.calendar.ui.components.KalendarRenderWrapper)2 UserRequest (org.olat.core.gui.UserRequest)2 Choice (org.olat.core.gui.components.choice.Choice)2 FormToggle (org.olat.core.gui.components.form.flexible.elements.FormToggle)2 SingleSelection (org.olat.core.gui.components.form.flexible.elements.SingleSelection)2 JSAndCSSComponent (org.olat.core.gui.components.htmlheader.jscss.JSAndCSSComponent)2