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();
}
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();
}
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();
}
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();
}
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();
}
Aggregations