Package org.olat.core.gui.control.generic.closablewrapper

Examples of org.olat.core.gui.control.generic.closablewrapper.CloseableModalController.activate()


          return;
        }
        StringBuilder resultsHTML = LocalizedXSLTransformer.getInstance(ureq.getLocale()).renderResults(doc);
        details.contextPut("reshtml", resultsHTML);
        CloseableModalController cmc = new CloseableModalController(getWindowControl(), getTranslator().translate("close"), details);
        cmc.activate();
      }
    }
  }

  /**
 
View Full Code Here


     
      String personalFolder = Util.createPackageTranslator(HomeMainController.class, ureq.getLocale(), null).translate("menu.bc");
     
      CloseableModalController clc = new CloseableModalController(getWindowControl(), translate("close"), folderComponent, true, personalFolder);
     
      clc.activate();
     
    }
  }

  private void showExportOngoing(final String courseTitle) {
View Full Code Here

      if(wiki.getMediaFileListWithMetadata().size() > 0){
        mediaMgntContent = createVelocityContainer("media");
        refreshTableDataModel(ureq);
        mediaMgntContent.put("mediaMgmtTable", mediaTableCtr.getInitialComponent());
        CloseableModalController cmc = new CloseableModalController(getWindowControl(), translate("close"), mediaMgntContent, true, translate("manage.media"));
        cmc.activate();
      }
    } else if (source == revertVersionButton) {
      wikiEditForm.setPage(selectedPage);
      tabs.setSelectedPane(2);
      tryToSetEditLock(page, ureq, ores);
View Full Code Here

  }

  public void event(UserRequest ureq, Component source, Event event) {
    if (source == jscssremove){
      CloseableModalController cmc = new CloseableModalController(getWindowControl(), "closing removes the css again, js -libs- are never removed by design, but you can include <script> tags in your velocity pages", modalVc1);
      cmc.activate();
    } else if (source == jscss){
      CloseableModalController cmc2 = new CloseableModalController(getWindowControl(), "closing does not remove the css again, js -libs- are never removed by design, but you can include <script> tags in your velocity pages", modalVc2);
      cmc2.activate();
    } else if (source == linkjs1) {
      jsTestP.setContent(jsVc1);
View Full Code Here

    if (source == jscssremove){
      CloseableModalController cmc = new CloseableModalController(getWindowControl(), "closing removes the css again, js -libs- are never removed by design, but you can include <script> tags in your velocity pages", modalVc1);
      cmc.activate();
    } else if (source == jscss){
      CloseableModalController cmc2 = new CloseableModalController(getWindowControl(), "closing does not remove the css again, js -libs- are never removed by design, but you can include <script> tags in your velocity pages", modalVc2);
      cmc2.activate();
    } else if (source == linkjs1) {
      jsTestP.setContent(jsVc1);
    } else if (source == linkjs2) {
      jsTestP.setContent(jsVc2);
    }
View Full Code Here

          MediaFileElement element = (MediaFileElement)mediaFilesTableModel.getObject(te.getRowId());
          if (isImage(element.getFilename()) ) { // show images inline as modal overlay
            imageDisplay.contextPut("mediaElement", element);
            imageDisplay.contextPut("imageUri", wikiArticleComp.getImageBaseUri());
            CloseableModalController cmc = new CloseableModalController(getWindowControl(), translate("close"), imageDisplay);
            cmc.activate();
          } else {
            deliverMediaFile(ureq, element.getFilename());
          }
        }
      } else if (event.getCommand().equals(Table.COMMAND_MULTISELECT)) {
View Full Code Here

        FolderRunController bcrun = new FolderRunController(namedCourseFolder, true, ureq, getWindowControl());
        bcrun.addLoggingResourceable(LoggingResourceable.wrap(course));
        Component folderComponent = bcrun.getInitialComponent();
        CloseableModalController clc = new CloseableModalController(getWindowControl(), translate(NLS_COURSEFOLDER_CLOSE),
            folderComponent);
        clc.activate();
       
      }
    } else if (source == nodeEditCntrllr) {
      // event from the tabbed pane (any tab)
      if (event == NodeEditController.NODECONFIG_CHANGED_EVENT) {
View Full Code Here

  }
 
  private void openVisitingCard(UserRequest ureq) {
    UserInfoMainController uimc = new UserInfoMainController(ureq, getWindowControl(), selectedIdentity);
    CloseableModalController cmcUserInfo = new CloseableModalController(getWindowControl(), translate("cl.close"), uimc.getInitialComponent());
    cmcUserInfo.activate();
  }

}

class GroupChoiceForm extends FormBasicController {
View Full Code Here

        groupEditController = new GroupController(ureq, getWindowControl(), true, true, false, ownerGroup);
        groupEditController.addControllerListener(this);
        VelocityContainer groupContainer = createVelocityContainer("groups")
        groupContainer.put("groupcomp", groupEditController.getInitialComponent());
        CloseableModalController cmc = new CloseableModalController(getWindowControl(), translate("close"), groupContainer);
        cmc.activate();
        return;
      } else if (cmd.equals(ACTION_CLOSE_RESSOURCE)) {
        doCloseResource(ureq);
        return;
      } else if (cmd.equals(ACTION_DELETE)) { // delete
View Full Code Here

      }
      VFSSecurityCallback secCallback = new FullAccessWithQuotaCallback(quota);
      namedContainer.setLocalSecurityCallback(secCallback);
      CloseableModalController cmc = new CloseableModalController(getWindowControl(), translate("close"),
          new FolderRunController(namedContainer, false, ureq, getWindowControl()).getInitialComponent());
      cmc.activate();
      return;
    }
  }

  /**
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.