Package org.olat.core.gui.control.creator

Examples of org.olat.core.gui.control.creator.ControllerCreator


   * @param ureq
   * @param redirectUrl
   * @return
   */
  public static BaseFullWebappPopupLayout createRedirectingPopup(UserRequest ureq, final String redirectUrl){
    ControllerCreator cc = new ControllerCreator() {
      public Controller createController(UserRequest lureq, WindowControl lwControl) {
        return new RedirectionDummyController(lureq, lwControl, redirectUrl);
      }
    };
    return new BaseFullWebappMinimalLayoutControllerCreator(cc);
View Full Code Here


   
      public Controller createTopNavController(UserRequest ureq, WindowControl wControl) {
        Controller topnavCtr = null;
        // ----------- topnav, optional (e.g. for imprint, logout) ------------------   
        if (CoreSpringFactory.containsBean("fullWebApp.MinimalTopNavControllerCreator")) {
          ControllerCreator topnavControllerCreator = (ControllerCreator) CoreSpringFactory.getBean("fullWebApp.MinimalTopNavControllerCreator");
          topnavCtr = topnavControllerCreator.createController(ureq, wControl);
        }
        return topnavCtr;
      }
   
      public Controller createHeaderController(UserRequest ureq, WindowControl control) {
        Controller headerCtr = null;
        // ----------- header, optional (e.g. for logo, advertising ) ------------------   
        if (CoreSpringFactory.containsBean("fullWebApp.MinimalHeaderControllerCreator")) {
          ControllerCreator headerControllerCreator = (ControllerCreatorCoreSpringFactory.getBean("fullWebApp.MinimalHeaderControllerCreator");
          headerCtr = headerControllerCreator.createController(ureq, control);
        }
        return headerCtr;
      }
   
      public Controller createFooterController(UserRequest ureq, WindowControl control) {
        Controller footerCtr = null;
        // ----------- footer, optional (e.g. for copyright, powerd by) ------------------
        if (CoreSpringFactory.containsBean("fullWebApp.MinimalFooterControllerCreator")) {
          ControllerCreator footerCreator = (ControllerCreator) CoreSpringFactory.getBean("fullWebApp.MinimalFooterControllerCreator");
          footerCtr = footerCreator.createController(ureq, control);
        }
        return footerCtr;
      }
    };
  }
View Full Code Here

      else if (cmd.equals("cmd.buddygroup.new")) {
        //was brasato:: getWindowControl().getDTabs().activateStatic(ureq, GroupsSite.class.getName(), "addBuddyGroup");
        dts.activateStatic(ureq, GroupsSite.class.getName(), "addBuddyGroup");
      }
    } else if (source == helpLink) {
      ControllerCreator ctrlCreator = new ControllerCreator() {
        public Controller createController(UserRequest lureq, WindowControl lwControl) {
          return CourseFactory.createHelpCourseLaunchController(lureq, lwControl);
        }         
      };
      //wrap the content controller into a full header layout
      ControllerCreator layoutCtrlr = BaseFullWebappPopupLayoutFactory.createAuthMinimalPopupLayout(ureq, ctrlCreator);
      //open in new browser window
      PopupBrowserWindow pbw = getWindowControl().getWindowBackOffice().getWindowManager().createNewPopupBrowserWindowFor(ureq, layoutCtrlr);
      pbw.open(ureq);
      //
    }
View Full Code Here

TOP

Related Classes of org.olat.core.gui.control.creator.ControllerCreator

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.