Examples of TitledWrapperController


Examples of org.olat.core.gui.control.generic.title.TitledWrapperController

   * @param title
   * @return a TitledWrapperController
   */
  public static Controller getTitledForumController(UserRequest ureq, WindowControl wControl, Forum forum, ForumCallback forumCallback, TitleInfo titleInfo) {     
    ForumController popupFoCtr = new ForumController(forum, forumCallback, ureq, wControl);                       
    TitledWrapperController forumWrapperController = new TitledWrapperController(ureq, wControl, popupFoCtr, "o_course_run", titleInfo);
    // Set CSS values to default forum icons if no values are set in the title info
    if (!StringHelper.containsNonWhitespace(titleInfo.getCssClass())) {
      forumWrapperController.setTitleCssClass(" b_with_small_icon_left " + ForumHelper.CSS_ICON_CLASS_FORUM + " ");
    }
    return forumWrapperController;             
  }
View Full Code Here

Examples of org.olat.core.gui.control.generic.title.TitledWrapperController

    if(CourseNode.DISPLAY_OPTS_CONTENT.equals(displayOption)) {
      return controller;
    } else if (CourseNode.DISPLAY_OPTS_TITLE_CONTENT.equals(displayOption)) {
      TitleInfo titleInfo = new TitleInfo(null, courseNode.getShortTitle(), null, courseNode.getIdent());
      titleInfo.setDescriptionCssClass("o_course_run_objectives");
      TitledWrapperController titledController = new TitledWrapperController(ureq, wControl, controller, "o_course_run", titleInfo);
      if (StringHelper.containsNonWhitespace(iconCssClass)) {
        titledController.setTitleCssClass(" b_with_small_icon_left " + iconCssClass + " ");
      }
      return titledController;
    } else if (CourseNode.DISPLAY_OPTS_TITLE_DESCRIPTION_CONTENT.equals(displayOption)) {

      String longTitle = courseNode.getLongTitle();
      String description = null;
      if (StringHelper.containsNonWhitespace(courseNode.getLearningObjectives())) {
        if (StringHelper.containsNonWhitespace(longTitle)) {
          description = "<h4>" + longTitle + "</h4>" + courseNode.getLearningObjectives();
        } else {
          description = courseNode.getLearningObjectives();
        }
      }
     
      TitleInfo titleInfo = new TitleInfo(null, courseNode.getShortTitle(), description, courseNode.getIdent());
      titleInfo.setDescriptionCssClass("o_course_run_objectives");
      TitledWrapperController titledController = new TitledWrapperController(ureq, wControl, controller, "o_course_run", titleInfo);
      if (StringHelper.containsNonWhitespace(iconCssClass)) {
        titledController.setTitleCssClass(" b_with_small_icon_left " + iconCssClass + " ");
      }
      return titledController;
    } else {
      return controller;
    }
View Full Code Here

Examples of org.olat.core.gui.control.generic.title.TitledWrapperController

      replyCommentFormCtr = new UserCommentFormController(ureq, getWindowControl(), userComment, null, commentManager);
      listenTo(replyCommentFormCtr);
      User parentUser = userComment.getCreator().getUser();
      String title = translate("comments.coment.reply.title", new String[]{parentUser.getProperty(UserConstants.FIRSTNAME, null), parentUser.getProperty(UserConstants.LASTNAME, null)});
      TitleInfo titleInfo = new TitleInfo(null, title);
      replyTitledWrapperCtr = new TitledWrapperController(ureq, getWindowControl(), replyCommentFormCtr, null, titleInfo);
      listenTo(replyTitledWrapperCtr);
      replyCmc = new CloseableModalController(getWindowControl(), "close", replyTitledWrapperCtr.getInitialComponent());
      replyCmc.activate();     
     
    } else if (source == deleteLink) {
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.