use of org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController in project OpenOLAT by OpenOLAT.
the class AbstractMemberListController method doOpenTools.
private void doOpenTools(UserRequest ureq, MemberView 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();
}
use of org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController in project OpenOLAT by OpenOLAT.
the class CorrectionAssessmentItemListController method doOpenTools.
private void doOpenTools(UserRequest ureq, CorrectionAssessmentItemRow 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();
}
use of org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController in project OpenOLAT by OpenOLAT.
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 OpenOLAT.
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 OpenOLAT.
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