Package org.olat.core.gui.components

Examples of org.olat.core.gui.components.Component


        Condition c = cn.getPreConditionVisibility();
        String visibilityExpr = (c.getConditionExpression() == null? translate("details.visibility.none") : c.getConditionExpression());
        detail.contextPut("visibilityExpr", visibilityExpr);
        detail.contextPut("coursenode", cn);

        Component nodeComp = currentNodeController.getInitialComponent();
        content.setContent(nodeComp);
      }
    } else if (source == configButton){
      fireEvent(ureq, new Event("command.config"));
    }
View Full Code Here


   
    EfficiencyStatementManager esm = EfficiencyStatementManager.getInstance();
    EfficiencyStatement efficiencyStatement = esm.getUserEfficiencyStatement(courseRepoEntryKey, ureq.getIdentity());

    //either the efficiency statement or the error message, that no data is available goes to the content area
    Component content = null;
   
    if (efficiencyStatement != null) {
      //extract efficiency statement data
      //fallback translation for user properties
      setTranslator(UserManager.getInstance().getPropertyHandlerTranslator(getTranslator()));   
View Full Code Here

      // activate certain state on controller
      if (activationArgs != null && resC instanceof Activateable){
        Activateable activatableCtr = (Activateable) resC;
        activatableCtr.activate(ureq, activationArgs);
      }
      Component resComp = resC.getInitialComponent();
      inclTitle = createVelocityContainer("incltitle");
      inclTitle.contextPut("titleString", titleStr);
      inclTitle.contextPut("command", cmd);
      inclTitle.put("exclTitle", resComp);
      content.setContent(inclTitle);
View Full Code Here

  private String getStackHTMLRepresentation() {
    StringBuilder result = new StringBuilder();
    result.append("Current window stack:<br /><br />");
    for (int i = windowStack.size(); i > 0; i--) {
      Component component = (Component)windowStack.get(i-1);
      result.append("Stack position " + i + ": " + component.getComponentName() + "<br />");
    }
    return result.toString();
  }
View Full Code Here

    dailyStatisticFormVc_.put("statisticForm", form_.getInitialComponent());
    dailyStatisticFormVc_.contextPut("statsSince", getStatsSinceStr(ureq));

    dailyStatisticVc_.put("dailystatisticform", dailyStatisticFormVc_);

    Component parentInitialComponent = super.createInitialComponent(ureq);
    dailyStatisticVc_.put("statistic", parentInitialComponent);
   
    return dailyStatisticVc_;
  }
View Full Code Here

    glossaryToolCtr = new CourseGlossaryToolLinkController(getWindowControl(), ureq, course, getTranslator(), hasGlossaryRights,
        uce.getCourseEnvironment(), glossaryMarkerCtr);
    listenTo(glossaryToolCtr);
    // init the menu and tool controller
    toolC = initToolController(identity, ureq);
    Component toolComp = (toolC == null ? null : toolC.getInitialComponent());

    if (glossaryMarkerCtr != null) {
      listenTo(glossaryMarkerCtr);
      // enable / disable glossary highlighting according to user prefs
      Preferences prefs = ureq.getUserSession().getGuiPreferences();
View Full Code Here

        if (currentNodeController != null) {
          currentNodeController.dispose();
        }

        currentNodeController = nclr.getRunController();
        Component nodeComp = currentNodeController.getInitialComponent();
        contentP.setContent(nodeComp);
       
        // set glossary wrapper dirty after menu click to make it reload the glossary
        // stuff properly when in AJAX mode
        if (glossaryMarkerCtr != null && glossaryMarkerCtr.isTextMarkingEnabled()) {
View Full Code Here

            updateTreeAndContent(ureq, null, null);
            // and also tools (maybe new assessable nodes -> show efficiency
            // statment)
            removeAsListenerAndDispose(toolC);
            toolC = initToolController(ureq.getIdentity(), ureq);
            Component toolComp = (toolC == null ? null : toolC.getInitialComponent());
            columnLayoutCtr.setCol2(toolComp);
          }
        } else {
          // release current node controllers resources and do cleanup if it was not the editor!
          removeAsListenerAndDispose(currentToolCtr);
View Full Code Here

            + "of group or group doesn't exist. Hacker attack or group has been changed or deleted. group key :: " + groupKey, null);
        // refresh toolbox that contained wrong group
        initGroupMemberships(ureq.getIdentity());
        removeAsListenerAndDispose(toolC);
        toolC = initToolController(ureq.getIdentity(), ureq);
        Component toolComp = (toolC == null ? null : toolC.getInitialComponent());
        columnLayoutCtr.setCol2(toolComp);

      }
    } else if (cmd.equals(COMMAND_EDIT)) {
      if (hasCourseRight(CourseRights.RIGHT_COURSEEDITOR) || isCourseAdmin) {
View Full Code Here

          assessmentChangedEventReceived = true;                   
        } else if (assessmentChangeType.equals(AssessmentChangedEvent.TYPE_EFFICIENCY_STATEMENT_CHANGED)) {
          // update tools, maybe efficiency statement link has changed
          removeAsListenerAndDispose(toolC);
          toolC = initToolController(identity, null);
          Component toolComp = (toolC == null ? null : toolC.getInitialComponent());
          columnLayoutCtr.setCol2(toolComp);
        }
        // raise a flag to indicate refresh
        needsRebuildAfterRunDone = true;
      }
    } else if (event instanceof BusinessGroupModifiedEvent) {
      BusinessGroupModifiedEvent bgme = (BusinessGroupModifiedEvent) event;
      Identity identity = uce.getIdentityEnvironment().getIdentity();
      // only do something if this identity is affected by change and the action
      // was adding or removing of the user
      if (bgme.wasMyselfAdded(identity) || bgme.wasMyselfRemoved(identity)) {
        // 1) reinitialize all group memberships
        initGroupMemberships(identity);
        // 2) reinitialize the users roles and rights
        initUserRolesAndRights(identity);
        // 3) rebuild toolboxes with link to groups and tools
        removeAsListenerAndDispose(toolC);
        toolC = initToolController(identity, null);
        Component toolComp = (toolC == null ? null : toolC.getInitialComponent());
        columnLayoutCtr.setCol2(toolComp);
        needsRebuildAfterRunDone = true;
      } else if (bgme.getCommand().equals(BusinessGroupModifiedEvent.GROUPRIGHTS_MODIFIED_EVENT)) {
        // check if this affects a right group where the user does participate.
        // if so, we need
        // to rebuild the toolboxes
        if (PersistenceHelper.listContainsObjectByKey(rightGroups, bgme.getModifiedGroupKey())) {
          // 1) reinitialize all group memberships
          initGroupMemberships(identity);
          // 2) reinitialize the users roles and rights
          initUserRolesAndRights(identity);
          // 3) rebuild toolboxes with link to groups and tools
          removeAsListenerAndDispose(toolC);
          toolC = initToolController(identity, null);
          Component toolComp = (toolC == null ? null : toolC.getInitialComponent());
          columnLayoutCtr.setCol2(toolComp);
        }
      }

    } else if (event instanceof CourseConfigEvent) {       
View Full Code Here

TOP

Related Classes of org.olat.core.gui.components.Component

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.