Package org.olat.core.gui.components.rating

Examples of org.olat.core.gui.components.rating.RatingComponent


    this.userCommentsAndRatingsVC.contextPut("viewIdent", CodeHelper.getRAMUniqueID());
    if (enableRatings) {
      this.userRatingsManager = UserRatingsManager.getInstance(ores, oresSubPath);
      if (securityCallback.canRate()) {
        this.userCommentsAndRatingsVC.contextPut("enableRatings", Boolean.valueOf(enableRatings));
        ratingUserC = new RatingComponent("userRating", 0, RATING_MAX, true);
        ratingUserC.addListener(this);
        this.userCommentsAndRatingsVC.put("ratingUserC", ratingUserC);
        ratingUserC.setShowRatingAsText(true);
        ratingUserC.setTitle("rating.personal.title");
        ratingUserC.setCssClass("b_rating_personal");
      }
     
      if (securityCallback.canViewRatingAverage()) {       
        ratingAverageC = new RatingComponent("ratingAverageC", 0, RATING_MAX, false);
        ratingAverageC.addListener(this);
        this.userCommentsAndRatingsVC.put("ratingAverageC", ratingAverageC);
        ratingAverageC.setShowRatingAsText(true);
        ratingAverageC.setTitle("rating.average.title");
        ratingAverageC.setTranslateExplanation(false);
View Full Code Here

TOP

Related Classes of org.olat.core.gui.components.rating.RatingComponent

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.