Package org.olat.core.gui.control.generic.tool

Examples of org.olat.core.gui.control.generic.tool.ToolController.addHeader()


    // 1) administrative tools
    if (isCourseAdmin || isCourseCoach || hasCourseRight(CourseRights.RIGHT_COURSEEDITOR)
        || hasCourseRight(CourseRights.RIGHT_GROUPMANAGEMENT) || hasCourseRight(CourseRights.RIGHT_ARCHIVING)
        || hasCourseRight(CourseRights.RIGHT_ASSESSMENT)) {
      myTool.addHeader(translate("header.tools"));
      if (hasCourseRight(CourseRights.RIGHT_COURSEEDITOR) || isCourseAdmin) {
        myTool.addLink(COMMAND_EDIT, translate("command.openeditor"));
      }
      if (hasCourseRight(CourseRights.RIGHT_GROUPMANAGEMENT) || isCourseAdmin) {
        myTool.addLink("groupmngt", translate("command.opengroupmngt"));
View Full Code Here


      //
    }

    // 2) add coached groups
    if (ownedGroups.size() > 0) {
      myTool.addHeader(translate("header.tools.ownerGroups"));
      Iterator iter = ownedGroups.iterator();
      while (iter.hasNext()) {
        BusinessGroup group = (BusinessGroup) iter.next();
        myTool.addLink(CMD_START_GROUP_PREFIX + group.getKey().toString(), group.getName());
      }
View Full Code Here

      }
    }

    // 3) add participating groups
    if (participatedGroups.size() > 0) {
      myTool.addHeader(translate("header.tools.participatedGroups"));
      Iterator iter = participatedGroups.iterator();
      while (iter.hasNext()) {
        BusinessGroup group = (BusinessGroup) iter.next();
        myTool.addLink(CMD_START_GROUP_PREFIX + group.getKey().toString(), group.getName());
      }
View Full Code Here

      }
    }

    // 4) add right groups
    if (rightGroups.size() > 0) {
      myTool.addHeader(translate("header.tools.rightGroups"));
      Iterator iter = rightGroups.iterator();
      while (iter.hasNext()) {
        BusinessGroup group = (BusinessGroup) iter.next();
        myTool.addLink(CMD_START_GROUP_PREFIX + group.getKey().toString(), group.getName());
      }
View Full Code Here

      }
    }

    // 5) add waiting-list groups
    if (waitingListGroups.size() > 0) {
      myTool.addHeader(translate("header.tools.waitingListGroups"));
      Iterator iter = waitingListGroups.iterator();
      while (iter.hasNext()) {
        BusinessGroup group = (BusinessGroup) iter.next();
        BusinessGroupManager businessGroupManager = BusinessGroupManagerImpl.getInstance();
        int pos = businessGroupManager.getPositionInWaitingListFor(identity, group);
View Full Code Here

        myTool.setEnabled(group.getKey().toString(), false);
      }
    }

    // new toolbox 'general'
    myTool.addHeader(translate("header.tools.general"));
    if (cc.isCalendarEnabled()) {
      myTool.addPopUpLink(ACTION_CALENDAR, translate("command.calendar"), null, null, "950", "750", false);
    }
    if (cc.hasGlossary()) {
      myTool.addComponent(glossaryToolCtr.getInitialComponent());
View Full Code Here

  }

  private ToolController populateToolC() {
    ToolController tc = ToolFactory.createToolController(getWindowControl());
    // tools
    tc.addHeader(translate("tools.tools.header"));
    tc.addLink(CMD_TOOLS_PREVIEW, translate("tools.tools.preview"), CMD_TOOLS_PREVIEW, "b_toolbox_preview");
    tc.addLink(CMD_TOOLS_CLOSE_EDITOR, translate("tools.tools.closeeditor"), null, "b_toolbox_close");
    // if (!restrictedEdit) {
    tc.addHeader(translate("tools.add.header"));
    // adds within the qti document level
View Full Code Here

    // tools
    tc.addHeader(translate("tools.tools.header"));
    tc.addLink(CMD_TOOLS_PREVIEW, translate("tools.tools.preview"), CMD_TOOLS_PREVIEW, "b_toolbox_preview");
    tc.addLink(CMD_TOOLS_CLOSE_EDITOR, translate("tools.tools.closeeditor"), null, "b_toolbox_close");
    // if (!restrictedEdit) {
    tc.addHeader(translate("tools.add.header"));
    // adds within the qti document level
    tc.addLink(CMD_TOOLS_ADD_SECTION, translate("tools.add.section"), CMD_TOOLS_ADD_SECTION, "o_mi_qtisection");
    // adds within a section
    tc.addLink(CMD_TOOLS_ADD_SINGLECHOICE, translate("tools.add.singlechoice"), CMD_TOOLS_ADD_SINGLECHOICE, "o_mi_qtisc");
    tc.addLink(CMD_TOOLS_ADD_MULTIPLECHOICE, translate("tools.add.multiplechoice"), CMD_TOOLS_ADD_MULTIPLECHOICE, "o_mi_qtimc");
View Full Code Here

        "o_mi_qtikprim");
    tc.addLink(CMD_TOOLS_ADD_FIB, translate("tools.add.cloze"), CMD_TOOLS_ADD_FIB, "o_mi_qtifib");
    if (qtiPackage.getQTIDocument().isSurvey()) tc.addLink(CMD_TOOLS_ADD_FREETEXT, translate("tools.add.freetext"),
        CMD_TOOLS_ADD_FREETEXT, "o_mi_qtiessay");
    // change
    tc.addHeader(translate("tools.change.header"));
    // change actions
    tc.addLink(CMD_TOOLS_CHANGE_DELETE, translate("tools.change.delete"), CMD_TOOLS_CHANGE_DELETE, "b_toolbox_delete");
    tc.addLink(CMD_TOOLS_CHANGE_MOVE, translate("tools.change.move"), CMD_TOOLS_CHANGE_MOVE, "b_toolbox_move");
    tc.addLink(CMD_TOOLS_CHANGE_COPY, translate("tools.change.copy"), CMD_TOOLS_CHANGE_COPY, "b_toolbox_copy");
    // }
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.