Exemplo n.º 1
0
  public void updateHtml() {
    if (lvl != null) {
      String bonusHtml = "";
      if (lvl.getCriterion().getBonus() != 0
          && lvl.getCriterion().getSelectedLevel() != null
          && lvl.getCriterion().getSelectedLevel() == lvl) {
        bonusHtml = " " + RubricMark.scoreFormat(lvl.getCriterion().getBonus(), true);
      }

      this.setHTML(
          "<div class=\""
              + Resources.INSTANCE.css().leveldesc()
              + "\">"
              + lvl.getDescription()
              + "</div><div class=\""
              + Resources.INSTANCE.css().levelpts()
              + "\">"
              + RubricMark.scoreFormat(lvl.getScore(), false)
              + bonusHtml
              + " pts</div>");
    }
  }
Exemplo n.º 2
0
 /** @return the rubric level */
 public int getLevelId() {
   return lvl.getId();
 }