Package org.olat.core.gui.components.text

Examples of org.olat.core.gui.components.text.TextComponent


    this.userCommentDisplayVC.contextPut("formatter", Formatter.getInstance(getLocale()));
    this.userCommentDisplayVC.contextPut("securityCallback", securityCallback);
    this.userCommentDisplayVC.contextPut("comment", userComment);
    // Creator information
    User user = userComment.getCreator().getUser();
    TextComponent creator = TextFactory.createTextComponentFromI18nKey("creator", null, null, null, true, userCommentDisplayVC);
    creator.setText(translate("comments.comment.creator", new String[]{user.getProperty(UserConstants.FIRSTNAME, null), user.getProperty(UserConstants.LASTNAME, null)}));
    // Portrait
    if (CoreSpringFactory.containsBean(UserAvatarDisplayControllerCreator.class.getName())) {
      UserAvatarDisplayControllerCreator avatarControllerCreator = (UserAvatarDisplayControllerCreator) CoreSpringFactory.getBean(UserAvatarDisplayControllerCreator.class);
      Controller avatarCtr = avatarControllerCreator.createController(ureq, getWindowControl(), userComment.getCreator(), false, true);
      listenTo(avatarCtr);
View Full Code Here

TOP

Related Classes of org.olat.core.gui.components.text.TextComponent

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.