Search in sources :

Example 71 with CloseableCalloutWindowController

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

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 72 with CloseableCalloutWindowController

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

the class PortfolioFilterController method popupTagsCallout.

private void popupTagsCallout(UserRequest ureq) {
    String title = translate("filter.tag");
    removeAsListenerAndDispose(moreTagsCtlr);
    moreTagsCtlr = new EPArtefactTagSelectionController(ureq, getWindowControl(), selectedTagsList);
    listenTo(moreTagsCtlr);
    removeAsListenerAndDispose(moreTagsCalloutCtrl);
    moreTagsCalloutCtrl = new CloseableCalloutWindowController(ureq, getWindowControl(), moreTagsCtlr.getInitialComponent(), (FormLink) tagEditBtn, title, true, null);
    listenTo(moreTagsCalloutCtrl);
    moreTagsCalloutCtrl.activate();
}
Also used : CloseableCalloutWindowController(org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController) FormLink(org.olat.core.gui.components.form.flexible.elements.FormLink)

Example 73 with CloseableCalloutWindowController

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

the class PortfolioFilterController method popupTypesCallout.

private void popupTypesCallout(UserRequest ureq) {
    String title = translate("filter.view");
    removeAsListenerAndDispose(moreTypesCtlr);
    moreTypesCtlr = new EPArtefactTypeSelectionController(ureq, getWindowControl(), selectedTypeList);
    listenTo(moreTypesCtlr);
    removeAsListenerAndDispose(moreTypesCalloutCtrl);
    moreTypesCalloutCtrl = new CloseableCalloutWindowController(ureq, getWindowControl(), moreTypesCtlr.getInitialComponent(), (FormLink) typeEditBtn, title, true, null);
    listenTo(moreTypesCalloutCtrl);
    moreTypesCalloutCtrl.activate();
}
Also used : CloseableCalloutWindowController(org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController) FormLink(org.olat.core.gui.components.form.flexible.elements.FormLink)

Example 74 with CloseableCalloutWindowController

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

the class AuthorListController method doOpenTools.

private void doOpenTools(UserRequest ureq, AuthoringEntryRow row, FormLink link) {
    removeAsListenerAndDispose(toolsCtrl);
    removeAsListenerAndDispose(toolsCalloutCtrl);
    RepositoryEntry entry = repositoryService.loadByKey(row.getKey());
    if (entry == null) {
        tableEl.reloadData();
        showWarning("repositoryentry.not.existing");
    } else {
        toolsCtrl = new ToolsController(ureq, getWindowControl(), row, entry);
        listenTo(toolsCtrl);
        toolsCalloutCtrl = new CloseableCalloutWindowController(ureq, getWindowControl(), toolsCtrl.getInitialComponent(), link.getFormDispatchId(), "", true, "");
        listenTo(toolsCalloutCtrl);
        toolsCalloutCtrl.activate();
    }
}
Also used : CloseableCalloutWindowController(org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController) RepositoryEntry(org.olat.repository.RepositoryEntry)

Example 75 with CloseableCalloutWindowController

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

the class CourseRuntimeController method launchCourseSearch.

private void launchCourseSearch(UserRequest ureq) {
    // do not dispose SearchInputController after search to remain able to listen to its events
    removeAsListenerAndDispose(courseSearchCalloutCtr);
    courseSearchCalloutCtr = null;
    removeAsListenerAndDispose(searchController);
    searchController = null;
    SearchServiceUIFactory searchServiceUIFactory = (SearchServiceUIFactory) CoreSpringFactory.getBean(SearchServiceUIFactory.class);
    searchController = searchServiceUIFactory.createInputController(ureq, getWindowControl(), DisplayOption.STANDARD, null);
    listenTo(searchController);
    courseSearchCalloutCtr = new CloseableCalloutWindowController(ureq, getWindowControl(), searchController.getInitialComponent(), searchLink.getDispatchID(), null, true, null);
    courseSearchCalloutCtr.addDisposableChildController(searchController);
    courseSearchCalloutCtr.activate();
    listenTo(courseSearchCalloutCtr);
}
Also used : SearchServiceUIFactory(org.olat.search.SearchServiceUIFactory) CloseableCalloutWindowController(org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController)

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