Examples of activateStatic()


Examples of org.olat.core.gui.control.generic.dtabs.DTabs.activateStatic()

  public void event(UserRequest ureq, Component source, Event event) {
    if (source == showAllLink){
      // activate homes tab in top navigation and active efficiencyStatements menu item
      //was brasato:: getWindowControl().getDTabs().activateStatic(ureq, HomeSite.class.getName(), "efficiencyStatements");
      DTabs dts = (DTabs)Windows.getWindows(ureq).getWindow(ureq).getAttribute("DTabs");
      dts.activateStatic(ureq, HomeSite.class.getName(), "efficiencyStatements");
    } else if (event == ComponentUtil.VALIDATE_EVENT && needReloadModel) {     
      reloadModel(sortingCriteria);
    }
  }
View Full Code Here

Examples of org.olat.core.gui.control.generic.dtabs.DTabs.activateStatic()

  public void event(UserRequest ureq, Component source, Event event) {
    if (source == showAllLink){
      // activate homes tab in top navigation and active notes menu item
      DTabs dts = (DTabs)Windows.getWindows(ureq).getWindow(ureq).getAttribute("DTabs");
      //was brasato:: getWindowControl().getDTabs().activateStatic(ureq, HomeSite.class.getName(), "note");
      dts.activateStatic(ureq, HomeSite.class.getName(), "note");
    }
  }
 
  /**
   * @see org.olat.core.gui.control.ControllerEventListener#dispatchEvent(org.olat.core.gui.UserRequest, org.olat.core.gui.control.Controller, org.olat.core.gui.control.Event)
View Full Code Here

Examples of org.olat.core.gui.control.generic.dtabs.DTabs.activateStatic()

  public void event(UserRequest ureq, Component source, Event event) {
    if (source == showAllLink){
      // activate homes tab in top navigation and active bookmarks menu item
      DTabs dts = (DTabs)Windows.getWindows(ureq).getWindow(ureq).getAttribute("DTabs");
      //was brasato:: getWindowControl().getDTabs().activateStatic(ureq, HomeSite.class.getName(), "adminnotifications");
      dts.activateStatic(ureq, HomeSite.class.getName(), "adminnotifications");
    } else if (event == ComponentUtil.VALIDATE_EVENT && needsModelReload) {
      //updateTableModel(ureq.getLocale(), ureq.getIdentity());
      reloadModel(sortingCriteria);
      needsModelReload = false;
    }
View Full Code Here

Examples of org.olat.core.gui.control.generic.dtabs.DTabs.activateStatic()

            }
           
            if (isSiteInstance) {
              // case A) is a site: create view identifyer for this jump in to the site
              JumpInResult jres = jh.createJumpInResult(ureq, cc.getWindowControl());
              dts.activateStatic(ureq, ores.getResourceableTypeName(), jres.getInitialViewIdentifier());             
            } else {
              // case B) no site and no opened tab -> create and add
              dt = dts.createDTab(ores, title);
              if (dt == null) { // tabs are full
                //create dtabs already issues a warning message 
View Full Code Here

Examples of org.olat.core.gui.control.generic.dtabs.DTabs.activateStatic()

  public void event(UserRequest ureq, Component source, Event event) {
    if (source == showAllLink) {
      String activationCmd = "cal." + new SimpleDateFormat("yyyy.MM.dd").format(new Date());
      DTabs dts = (DTabs)Windows.getWindows(ureq).getWindow(ureq).getAttribute("DTabs");
      //was brasato:: getWindowControl().getDTabs().activateStatic(ureq, HomeSite.class.getName(), activationCmd);
      dts.activateStatic(ureq, HomeSite.class.getName(), activationCmd);
    } else if (event == ComponentUtil.VALIDATE_EVENT && dirty) {
      List events = getMatchingEvents(ureq, getWindowControl());
      tableController.setTableDataModel(new EventsModel(events, ureq.getLocale(), trans));
    }
  }
View Full Code Here

Examples of org.olat.core.gui.control.generic.dtabs.DTabs.activateStatic()

      CatalogEntry selectedCategoryLevel = categoriesListModel.getCatalogEntry(te.getRowId());
     
      if (action.equals(CategoriesListModel.ACTION_GOTO)) {
        // select repo site and activate catalog entry in catalog
        DTabs dts = (DTabs) getWindowControl().getWindowBackOffice().getWindow().getAttribute("DTabs");
        dts.activateStatic(ureq, RepositorySite.class.getName(), "search.catalog:" + selectedCategoryLevel.getKey());
       
      } else if (action.equals(CategoriesListModel.ACTION_DELETE)) {
        // remove selected entry from the data model
        CatalogManager cm = CatalogManager.getInstance();
        List<CatalogEntry> children = cm.getChildrenOf(selectedCategoryLevel);
View Full Code Here

Examples of org.olat.core.gui.control.generic.dtabs.DTabs.activateStatic()

          KalendarEvent kalendarEvent = (KalendarEvent)((DefaultTableDataModel)tableController.getTableDataModel()).getObject(rowid);
          Date startDate = kalendarEvent.getBegin();
          String activationCmd = "cal." + new SimpleDateFormat("yyyy.MM.dd").format(startDate);
          DTabs dts = (DTabs)Windows.getWindows(ureq).getWindow(ureq).getAttribute("DTabs");
          //was brasato:: getWindowControl().getDTabs().activateStatic(ureq, HomeSite.class.getName(), activationCmd);
          dts.activateStatic(ureq, HomeSite.class.getName(), activationCmd);
        }
      }
    }
  }
View Full Code Here

Examples of org.olat.core.gui.control.generic.dtabs.DTabs.activateStatic()

    } else if (cmd.equals(TOOLBOX_LINK_COURSECONFIG)) {
      //FIXME:pb:a better workflows to link a course detail page from course run
      //was brasato getWindowControl().getDTabs().activateStatic(ureq, RepositorySite.class.getName(),RepositoryMainController.JUMPFROMEXTERN + RepositoryMainController.JUMPFROMCOURSE + courseRepositoryEntry.getKey().toString());
      DTabs dts = (DTabs)Windows.getWindows(ureq).getWindow(ureq).getAttribute("DTabs");
      if(dts != null){
        dts.activateStatic(ureq, RepositorySite.class.getName(),RepositoryMainController.JUMPFROMEXTERN + RepositoryMainController.JUMPFROMCOURSE + courseRepositoryEntry.getKey().toString());
      }else{
        //help course in popup window can not display detail page
        getWindowControl().setInfo("detail can not be displayed here");
      }
      return;
View Full Code Here

Examples of org.olat.core.gui.control.generic.dtabs.DTabs.activateStatic()

    if (source == showAllLink){
      // activate learning resource tab in top navigation and active my courses menu item
      DTabs dts = (DTabs)Windows.getWindows(ureq).getWindow(ureq).getAttribute("DTabs");
      //attach controller / action extension dynamically to lr-site
      if (studentView) {
        dts.activateStatic(ureq, RepositorySite.class.getName(), "search.mycourses.student");
      } else {
        dts.activateStatic(ureq, RepositorySite.class.getName(), "search.mycourses.teacher");
      }     
    }
  }
View Full Code Here

Examples of org.olat.core.gui.control.generic.dtabs.DTabs.activateStatic()

      DTabs dts = (DTabs)Windows.getWindows(ureq).getWindow(ureq).getAttribute("DTabs");
      //attach controller / action extension dynamically to lr-site
      if (studentView) {
        dts.activateStatic(ureq, RepositorySite.class.getName(), "search.mycourses.student");
      } else {
        dts.activateStatic(ureq, RepositorySite.class.getName(), "search.mycourses.teacher");
      }     
    }
  }

  /**
 
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.