Search in sources :

Example 81 with CloseableCalloutWindowController

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

the class LandingPagesAdminController method openChooser.

private void openChooser(UserRequest ureq, RuleWrapper row, FormLink link) {
    removeAsListenerAndDispose(chooserCtrl);
    removeAsListenerAndDispose(chooserCalloutCtrl);
    chooserCtrl = new ChooserController(ureq, getWindowControl(), row);
    listenTo(chooserCtrl);
    chooserCalloutCtrl = new CloseableCalloutWindowController(ureq, getWindowControl(), chooserCtrl.getInitialComponent(), link.getFormDispatchId(), "", true, "");
    listenTo(chooserCalloutCtrl);
    chooserCalloutCtrl.activate();
}
Also used : CloseableCalloutWindowController(org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController)

Example 82 with CloseableCalloutWindowController

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

the class FlexiTableElementImpl method customizeCallout.

protected void customizeCallout(UserRequest ureq) {
    Choice choice = getColumnListAndTheirVisibility();
    callout = new CloseableCalloutWindowController(ureq, wControl, choice, customButton, "Customize", true, "o_sel_flexi_custom_callout");
    callout.activate();
    callout.addControllerListener(this);
}
Also used : Choice(org.olat.core.gui.components.choice.Choice) CloseableCalloutWindowController(org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController)

Example 83 with CloseableCalloutWindowController

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

the class FlexiTableElementImpl method extendedFilterCallout.

private void extendedFilterCallout(UserRequest ureq) {
    extendedFilterCtrl = new ExtendedFilterController(ureq, wControl, extendedFilters);
    extendedFilterCtrl.addControllerListener(this);
    callout = new CloseableCalloutWindowController(ureq, wControl, extendedFilterCtrl.getInitialComponent(), extendedFilterButton, "Filter", true, "o_sel_flexi_filter_callout");
    callout.activate();
    callout.addControllerListener(this);
}
Also used : CloseableCalloutWindowController(org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController)

Example 84 with CloseableCalloutWindowController

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

the class EditorMainController method doOpenStatusOverview.

private void doOpenStatusOverview(UserRequest ureq) {
    removeAsListenerAndDispose(statusCtr);
    statusCtr = new EditorStatusController(ureq, getWindowControl());
    listenTo(statusCtr);
    euce.getCourseEditorEnv().validateCourse();
    StatusDescription[] courseStatus = euce.getCourseEditorEnv().getCourseStatus();
    statusCtr.updateStatus(cetm, courseStatus);
    calloutCtrl = new CloseableCalloutWindowController(ureq, getWindowControl(), statusCtr.getInitialComponent(), statusLink, "", true, null);
    listenTo(calloutCtrl);
    calloutCtrl.activate();
}
Also used : CloseableCalloutWindowController(org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController)

Example 85 with CloseableCalloutWindowController

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

the class GTAAvailableTaskController method doDescription.

private void doDescription(UserRequest ureq, AvailableTask row) {
    removeAsListenerAndDispose(descriptionCalloutCtrl);
    VelocityContainer descriptionVC = createVelocityContainer("description_callout");
    descriptionVC.contextPut("description", row.getTaskDef().getDescription());
    descriptionCalloutCtrl = new CloseableCalloutWindowController(ureq, getWindowControl(), descriptionVC, row.getDescriptionLink().getFormDispatchId(), "", true, "");
    listenTo(descriptionCalloutCtrl);
    descriptionCalloutCtrl.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