Search in sources :

Example 96 with CloseableCalloutWindowController

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

the class QuestionListController method doOpenImport.

private void doOpenImport(UserRequest ureq) {
    String title = translate("import");
    removeAsListenerAndDispose(importSourcesCtrl);
    importSourcesCtrl = new ImportSourcesController(ureq, getWindowControl());
    listenTo(importSourcesCtrl);
    removeAsListenerAndDispose(calloutCtrl);
    calloutCtrl = new CloseableCalloutWindowController(ureq, getWindowControl(), importSourcesCtrl.getInitialComponent(), importItem, title, true, null);
    listenTo(calloutCtrl);
    calloutCtrl.activate();
}
Also used : CloseableCalloutWindowController(org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController)

Example 97 with CloseableCalloutWindowController

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

the class TaxonomyLevelCompetenceController method doAddCompetence.

private void doAddCompetence(UserRequest ureq) {
    addCompetencesCtrl = new AddCompetencesController(ureq, getWindowControl());
    listenTo(addCompetencesCtrl);
    addCompetencesCallout = new CloseableCalloutWindowController(ureq, getWindowControl(), addCompetencesCtrl.getInitialComponent(), addCompetencesButton.getFormDispatchId(), "", true, "");
    listenTo(addCompetencesCallout);
    addCompetencesCallout.activate();
}
Also used : CloseableCalloutWindowController(org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController)

Example 98 with CloseableCalloutWindowController

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

the class TaxonomyLevelTypesEditController method doOpenTools.

private void doOpenTools(UserRequest ureq, TaxonomyLevelTypeRow row, FormLink link) {
    removeAsListenerAndDispose(toolsCtrl);
    removeAsListenerAndDispose(toolsCalloutCtrl);
    TaxonomyLevelType type = taxonomyService.getTaxonomyLevelType(row);
    if (type == null) {
        tableEl.reloadData();
        showWarning("warning.taxonomy.level.type.deleted");
    } else {
        toolsCtrl = new ToolsController(ureq, getWindowControl(), row, type);
        listenTo(toolsCtrl);
        toolsCalloutCtrl = new CloseableCalloutWindowController(ureq, getWindowControl(), toolsCtrl.getInitialComponent(), link.getFormDispatchId(), "", true, "");
        listenTo(toolsCalloutCtrl);
        toolsCalloutCtrl.activate();
    }
}
Also used : TaxonomyLevelType(org.olat.modules.taxonomy.TaxonomyLevelType) CloseableCalloutWindowController(org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController)

Example 99 with CloseableCalloutWindowController

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

the class PageEditorController method openAddElementCallout.

private void openAddElementCallout(UserRequest ureq, Link link, EditorFragment referenceFragment, PageElementTarget target) {
    addElementsCtrl = new AddElementsController(ureq, getWindowControl(), provider, referenceFragment, target);
    listenTo(addElementsCtrl);
    CalloutSettings calloutSettings;
    if (target == PageElementTarget.above) {
        calloutSettings = new CalloutSettings(true, CalloutOrientation.top);
    } else {
        calloutSettings = new CalloutSettings(false);
    }
    addCalloutCtrl = new CloseableCalloutWindowController(ureq, getWindowControl(), addElementsCtrl.getInitialComponent(), link.getDispatchID(), "", true, "", calloutSettings);
    listenTo(addCalloutCtrl);
    addCalloutCtrl.activate();
}
Also used : CloseableCalloutWindowController(org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController) CalloutSettings(org.olat.core.gui.control.generic.closablewrapper.CalloutSettings)

Example 100 with CloseableCalloutWindowController

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

the class ReasonAdminController method doOpenTools.

private void doOpenTools(UserRequest ureq, Reason row, FormLink link) {
    removeAsListenerAndDispose(toolsCtrl);
    removeAsListenerAndDispose(toolsCalloutCtrl);
    toolsCtrl = new ToolsController(ureq, getWindowControl(), row);
    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)

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