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>"); } }
/** @return the rubric level */ public int getLevelId() { return lvl.getId(); }