private void populateAssessmentsGrid(WhiteBoardAssessmentConfigVoCollection assessments) { if (assessments==null || assessments.size()==0) return; for (int i=0;i<assessments.size();i++) { addRowToAssessmentsGrid(assessments.get(i)); } }
private void addAssessmentsToGrid(DynamicGridRow row, WhiteBoardAssessmentConfigVoCollection collAssessments) { if (collAssessments==null) return; for (int i=0;i<collAssessments.size();i++) { DynamicGridCell cellPain = row.getCells().newCell(getColumnByIdentifier(collAssessments.get(i)), DynamicCellType.INT); cellPain.setValue(i); cellPain.setTooltip(Integer.toString(i)); cellPain.setReadOnly(true); } }
private void initializeWithAssessments(WhiteBoardAssessmentConfigVoCollection collAssessmentColumns) { if (collAssessmentColumns==null || collAssessmentColumns.size()==0) return; for (int i=0;i<collAssessmentColumns.size();i++) addColumnAssessment(collAssessmentColumns.get(i)); }