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

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


          listenTo(forumCtr);
          content.contextPut("hasInlineForum", Boolean.TRUE);
          content.put("forum", forumCtr.getInitialComponent());
        } else {
          content.contextPut("hasInlineForum", Boolean.FALSE);         
          TitleInfo titleInfo = new TitleInfo(translate("dialog.selected.element"), selectedElement.getFilename());
          PopupBrowserWindow pbw = ForumUIFactory.getPopupableForumController(ureq, getWindowControl(), forum, forumCallback, titleInfo);
          pbw.open(ureq);
        }

      } else if (command.equals(ACTION_SHOW_FILE)) {
View Full Code Here


   
    String displayOption = courseNode.getDisplayOption();
    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;
View Full Code Here

        Codepoint.codepoint(CollaborationTools.class, "sync_exit");
        return aforum;
      }});
   
    Translator trans = Util.createPackageTranslator(this.getClass(), ureq.getLocale());
    TitleInfo titleInfo = new TitleInfo(null, trans.translate("collabtools.named.hasForum"));
    titleInfo.setSeparatorEnabled(true);
    Controller forumController = ForumUIFactory.getTitledForumController(ureq, wControl, forum, new ForumCallback() {

      public boolean mayOpenNewThread() {
        return true;
      }
View Full Code Here

      // Init reply workflow
      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();     
     
View Full Code Here

TOP

Related Classes of org.olat.core.gui.control.generic.title.TitleInfo

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.