Search in sources :

Example 31 with CloseableCalloutWindowController

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

the class MediaCenterController method doOpenNewMediaCallout.

private void doOpenNewMediaCallout(UserRequest ureq, FormLink link) {
    removeAsListenerAndDispose(newMediasCtrl);
    removeAsListenerAndDispose(newMediasCalloutCtrl);
    newMediasCtrl = new NewMediasController(ureq, getWindowControl());
    listenTo(newMediasCtrl);
    newMediasCalloutCtrl = new CloseableCalloutWindowController(ureq, getWindowControl(), newMediasCtrl.getInitialComponent(), link.getFormDispatchId(), "", true, "", new CalloutSettings(false));
    listenTo(newMediasCalloutCtrl);
    newMediasCalloutCtrl.activate();
}
Also used : CloseableCalloutWindowController(org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController) CalloutSettings(org.olat.core.gui.control.generic.closablewrapper.CalloutSettings)

Example 32 with CloseableCalloutWindowController

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

the class QuestionListController method doShare.

protected void doShare(UserRequest ureq) {
    String title = translate("filter.view");
    removeAsListenerAndDispose(shareTargetCtrl);
    shareTargetCtrl = new ShareTargetController(ureq, getWindowControl(), getSecurityCallback());
    listenTo(shareTargetCtrl);
    removeAsListenerAndDispose(calloutCtrl);
    calloutCtrl = new CloseableCalloutWindowController(ureq, getWindowControl(), shareTargetCtrl.getInitialComponent(), shareItem, title, true, null);
    listenTo(calloutCtrl);
    calloutCtrl.activate();
}
Also used : CloseableCalloutWindowController(org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController)

Example 33 with CloseableCalloutWindowController

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

the class QuestionListController method doList.

protected void doList(UserRequest ureq) {
    String title = translate("filter.view");
    removeAsListenerAndDispose(listTargetCtrl);
    listTargetCtrl = new CollectionTargetController(ureq, getWindowControl(), itemCollection != null);
    listenTo(listTargetCtrl);
    removeAsListenerAndDispose(calloutCtrl);
    calloutCtrl = new CloseableCalloutWindowController(ureq, getWindowControl(), listTargetCtrl.getInitialComponent(), list, title, true, null);
    listenTo(calloutCtrl);
    calloutCtrl.activate();
}
Also used : CloseableCalloutWindowController(org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController)

Example 34 with CloseableCalloutWindowController

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

the class QuestionListController method doChooseTestFormat.

private void doChooseTestFormat(UserRequest ureq, Set<ExportFormatOptions> exportFormatOptions) {
    removeAsListenerAndDispose(createTestTargetCtrl);
    createTestTargetCtrl = new CreateTestTargetController(ureq, getWindowControl(), exportFormatOptions);
    listenTo(createTestTargetCtrl);
    removeAsListenerAndDispose(calloutCtrl);
    calloutCtrl = new CloseableCalloutWindowController(ureq, getWindowControl(), createTestTargetCtrl.getInitialComponent(), createTest, null, true, null);
    listenTo(calloutCtrl);
    calloutCtrl.activate();
}
Also used : CloseableCalloutWindowController(org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController)

Example 35 with CloseableCalloutWindowController

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

the class RepositorySearchController method doOpenInfos.

private void doOpenInfos(UserRequest ureq, RepositoryEntry repositoryEntry, int rowId) {
    removeAsListenerAndDispose(calloutCtrl);
    removeAsListenerAndDispose(infosCtrl);
    infosCtrl = new RepositoryEntrySmallDetailsController(ureq, getWindowControl(), repositoryEntry);
    listenTo(infosCtrl);
    calloutCtrl = new CloseableCalloutWindowController(ureq, getWindowControl(), infosCtrl.getInitialComponent(), "ore" + rowId + "ref", null, true, null);
    listenTo(calloutCtrl);
    calloutCtrl.activate();
}
Also used : CloseableCalloutWindowController(org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController) RepositoryEntrySmallDetailsController(org.olat.repository.ui.author.RepositoryEntrySmallDetailsController)

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