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

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


        int rowid = te.getRowId();
        final UserInfo selectedInfo = usersTableModel.getUserInfo(rowid);
        if (te.getActionId().equals(CMD_SHOW)) {
          showMessages(ureq, selectedInfo);
        } else if (te.getActionId().equals(CMD_HOMEPAGE)) {
          ControllerCreator ctrlCreator = new ControllerCreator() {
            public Controller createController(UserRequest lureq, WindowControl lwControl) {
              return new UserInfoMainController(lureq, lwControl, selectedInfo.getIdentity());
            }
          };
          // 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


  /* (non-Javadoc)
   * @see org.olat.core.commons.services.clipboard.ClipboardEntry#createTrayUI()
   */
  public ControllerCreator createTrayUI() {
    return new ControllerCreator(){
      public Controller createController(UserRequest ureq, WindowControl wControl) {
        return MessageUIFactory.createSimpleMessage(ureq, wControl, DemoClipboardEntry.this.text);
      }};
  }
View Full Code Here

        }
        buddiesListContent.setDirty(true);
       
      } else if (source == showOtherUsers) {
        //open new window with a list of online users
        ControllerCreator ctrlCreator = new ControllerCreator() {
          public Controller createController(UserRequest lureq, WindowControl lwControl) {
            ConnectedClientsListController clientsListCtr = new ConnectedClientsListController(lureq, lwControl);
            LayoutMain3ColsController mainLayoutCtr = new LayoutMain3ColsController(lureq, lwControl, null, null, clientsListCtr.getInitialComponent(), null);
            mainLayoutCtr.addDisposableChildController(clientsListCtr);
            return mainLayoutCtr;
          }         
        };
        //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

      }
      spCtr.addLoggingResourceable(LoggingResourceable.wrap(this));
      // create clone wrapper layout, allow popping into second window
      CloneLayoutControllerCreatorCallback clccc = new CloneLayoutControllerCreatorCallback() {
        public ControllerCreator createLayoutControllerCreator(final UserRequest ureq, final ControllerCreator contentControllerCreator) {
          return BaseFullWebappPopupLayoutFactory.createAuthMinimalPopupLayout(ureq, new ControllerCreator() {
            @SuppressWarnings("synthetic-access")
            public Controller createController(UserRequest lureq, WindowControl lwControl) {
              // wrapp in column layout, popup window needs a layout controller
              Controller ctr = contentControllerCreator.createController(lureq, lwControl);
              LayoutMain3ColsController layoutCtr = new LayoutMain3ColsController(lureq, lwControl, null, null, ctr.getInitialComponent(),
View Full Code Here

    listenTo(controller);
   
    // create clone wrapper layout
    CloneLayoutControllerCreatorCallback clccc = new CloneLayoutControllerCreatorCallback() {
      public ControllerCreator createLayoutControllerCreator(UserRequest ureq, final ControllerCreator contentControllerCreator) {
        return BaseFullWebappPopupLayoutFactory.createAuthMinimalPopupLayout(ureq, new ControllerCreator() {
          @SuppressWarnings("synthetic-access")
          public Controller createController(UserRequest lureq, WindowControl lwControl) {
            // wrapp in column layout, popup window needs a layout controller
            Controller ctr = contentControllerCreator.createController(lureq, lwControl);
            LayoutMain3ColsController layoutCtr = new LayoutMain3ColsController(lureq, lwControl, null, null, ctr.getInitialComponent(),
View Full Code Here

          fireEvent(ureq, new SingleIdentityChosenEvent(foundIdentity));
        } else if (actionid.equals(ExtendedIdentitiesTableControllerFactory.COMMAND_VCARD)) {
          // get identitiy and open new visiting card controller in new window
          int rowid = te.getRowId();
          final Identity identity = tdm.getIdentityAt(rowid);
          ControllerCreator userInfoMainControllerCreator = new ControllerCreator() {
            public Controller createController(UserRequest lureq, WindowControl lwControl) {
              return new UserInfoMainController(lureq, lwControl, identity);
            }
          };
          // wrap the content controller into a full header layout
          ControllerCreator layoutCtrlr = BaseFullWebappPopupLayoutFactory.createAuthMinimalPopupLayout(ureq, userInfoMainControllerCreator);
          // open in new browser window
          PopupBrowserWindow pbw = getWindowControl().getWindowBackOffice().getWindowManager().createNewPopupBrowserWindowFor(ureq,
              layoutCtrlr);
          pbw.open(ureq);
          //
View Full Code Here

        // open a controller in a new window which only results in sending back
        // javascript
        // get preselected groups
        final String groups = (String) moduleConfiguration.get(CONFIG_KEY_EMAILTOGROUPS);
        // get group select controller
        ControllerCreator ctrlCreator = new ControllerCreator() {
          public Controller createController(UserRequest lureq, WindowControl lwControl) {
            selectGroupsCtr = new GroupAndAreaSelectController(lureq,lwControl,course.getCourseEnvironment().getCourseGroupManager(),
                GroupAndAreaSelectController.TYPE_GROUP, groups,
                FormRenderer.JSELEMENTID + "popupchoosegroups"+configForm.hashCode());
            // use a one-column main layout
            // disposed in dispose method of COEditController!
            LayoutMain3ColsController layoutCtr = new LayoutMain3ColsController(lureq, lwControl, null, null, selectGroupsCtr.getInitialComponent(), "null");
            return layoutCtr;
          }         
        };
        //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);
        //
      } else if (event.getCommand().equals("popupchooseareas")) {
        // open a controller in a new window which only results in sending back
        // javascript
        // get preselected areas
        final String areas = (String) moduleConfiguration.get(CONFIG_KEY_EMAILTOAREAS);
        // get area select controller
        ControllerCreator ctrlCreator = new ControllerCreator() {
          public Controller createController(UserRequest lureq, WindowControl lwControl) {
            selectAreasCtr = new GroupAndAreaSelectController(lureq, lwControl, course.getCourseEnvironment().getCourseGroupManager(),
                GroupAndAreaSelectController.TYPE_AREA, areas, FormRenderer.JSELEMENTID + "popupchooseareas" + configForm.hashCode());
            // use a one-column main layout
            // disposed in dispose method of COEditController!
            LayoutMain3ColsController layoutCtr = new LayoutMain3ColsController(lureq, lwControl, null, null, selectAreasCtr.getInitialComponent(), null);
            return layoutCtr;
          }         
        };
        //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

        String actionid = te.getActionId();
        if (actionid.equals(COMMAND_VCARD)) {
          // get identitiy and open new visiting card controller in new window
          int rowid = te.getRowId();
          final Identity identity = identitiesTableModel.getIdentityAt(rowid);
          ControllerCreator userInfoMainControllerCreator = new ControllerCreator() {
            public Controller createController(UserRequest lureq, WindowControl lwControl) {
              return new UserInfoMainController(lureq, lwControl, identity);
            }         
          };
          //wrap the content controller into a full header layout
          ControllerCreator layoutCtrlr = BaseFullWebappPopupLayoutFactory.createAuthMinimalPopupLayout(ureq, userInfoMainControllerCreator);
          //open in new browser window
          PopupBrowserWindow pbw = getWindowControl().getWindowBackOffice().getWindowManager().createNewPopupBrowserWindowFor(ureq, layoutCtrlr);
          pbw.open(ureq);
          //
        } else if (actionid.equals(COMMAND_SELECTUSER)) {
View Full Code Here

      calCtr.setFocus(startDate);
    }

    CloneLayoutControllerCreatorCallback clccc = new CloneLayoutControllerCreatorCallback() {
      public ControllerCreator createLayoutControllerCreator(UserRequest ureq, final ControllerCreator contentControllerCreator) {
        return BaseFullWebappPopupLayoutFactory.createAuthMinimalPopupLayout(ureq, new ControllerCreator() {
          @SuppressWarnings("synthetic-access")
          public Controller createController(UserRequest lureq, WindowControl lwControl) {
            // wrapp in column layout, popup window needs a layout controller
            Controller ctr = contentControllerCreator.createController(lureq, lwControl);
            LayoutMain3ColsController layoutCtr = new LayoutMain3ColsController(lureq, lwControl, null, null, ctr.getInitialComponent(),
View Full Code Here

    }   

    // create clone wrapper layout
    CloneLayoutControllerCreatorCallback clccc = new CloneLayoutControllerCreatorCallback() {
      public ControllerCreator createLayoutControllerCreator(UserRequest ureq, final ControllerCreator contentControllerCreator) {
        return BaseFullWebappPopupLayoutFactory.createAuthMinimalPopupLayout(ureq, new ControllerCreator() {
          @SuppressWarnings("synthetic-access")
          public Controller createController(UserRequest lureq, WindowControl lwControl) {
            // Wrap in column layout, popup window needs a layout controller
            Controller ctr = contentControllerCreator.createController(lureq, lwControl);
            LayoutMain3ColsController layoutCtr = new LayoutMain3ColsController(lureq, lwControl, null, null, ctr.getInitialComponent(),
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.