Package org.olat.core.gui.components.htmlsite

Examples of org.olat.core.gui.components.htmlsite.HtmlStaticPageComponent


      idc.setCurrentURI(startURI);
      myContent.put("content", idc.getInitialComponent());
    } else
      // in inline mode
      // create single page root file now and start component for display dispathing
      cpc = new HtmlStaticPageComponent("content", g_new_rootContainer);
      cpc.addListener(this);
      myContent.put("content", cpc);

      if (currentUri != null) {
        if (currentUri.charAt(0) == '/') {
View Full Code Here


   
    //TODO:gs:a
    //may add an additional config for disabling, enabling IFrame style or not in CP mode
    //but always disable IFrame display when in screenreader mode (no matter whether style gets ugly)
    if (getWindowControl().getWindowBackOffice().getWindowManager().isForScreenReader()) {
      cpComponent = new HtmlStaticPageComponent("", rootContainer);
      cpComponent.addListener(this);
      myContent.put("cpContent", cpComponent);
    } else {
      cpContentCtr = new IFrameDisplayController(ureq, getWindowControl(),rootContainer, null, ores);
      cpContentCtr.setAllowDownload(true);
View Full Code Here

   * @param startUri The relative start uri to the root container
   */
  public WebsiteDisplayController(UserRequest ureq, WindowControl wControl, VFSContainer rootContainer, String startUri) {
    super(ureq, wControl);
    if (getWindowControl().getWindowBackOffice().getWindowManager().isForScreenReader()) {
      HtmlStaticPageComponent display = new HtmlStaticPageComponent("display", rootContainer);
      display.setCurrentURI(startUri);     
      putInitialPanel(display);
    } else {
      IFrameDisplayController iframeCtr = new IFrameDisplayController(ureq, wControl, rootContainer);
      iframeCtr.setCurrentURI(startUri);
      listenTo(iframeCtr);
View Full Code Here

        + TACourseNode.getTaskFolderPathRelToFolderRoot(userCourseEnv.getCourseEnvironment(), node));
      if (assignedTask.toLowerCase().endsWith(".html") || assignedTask.toLowerCase().endsWith(".htm") || assignedTask.toLowerCase().endsWith(".txt")) {

        if (getWindowControl().getWindowBackOffice().getWindowManager().isForScreenReader()) {
          // render content for screenreaders always inline
          HtmlStaticPageComponent cpc = new HtmlStaticPageComponent("cpc", new LocalFolderImpl(fTaskfolder));
          cpc.setCurrentURI(assignedTask);
          if (cmc != null) cmc.dispose();
          cmc = new CloseableModalController(getWindowControl(), translator.translate("close"), cpc);
          cmc.activate();
        } else {
          // render content for other users always in iframe
View Full Code Here

        if (baseContainer == null || baseContainer.resolve(sDisclaimer) == null) {
          showWarning("disclaimer.file.invalid", sDisclaimer);
        } else {
          //screenreader do not like iframes, display inline
          if (getWindowControl().getWindowBackOffice().getWindowManager().isForScreenReader()) {
            HtmlStaticPageComponent disclaimerComp = new HtmlStaticPageComponent("disc", baseContainer);
            myContent.put("disc", disclaimerComp);
            disclaimerComp.setCurrentURI(sDisclaimer);
            myContent.contextPut("hasDisc", Boolean.TRUE);
          } else {
            iFrameCtr = new IFrameDisplayController(ureq, getWindowControl(), baseContainer);
            listenTo(iFrameCtr);//dispose automatically
            myContent.put("disc", iFrameCtr.getInitialComponent());
View Full Code Here

TOP

Related Classes of org.olat.core.gui.components.htmlsite.HtmlStaticPageComponent

Copyright © 2018 www.massapicom. 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.