private void populateCommentGrid(AttendanceClinicalNotesVoCollection notes) { if (notes == null) return; notes.sort(new CommentsDateComparator(SortOrder.DESCENDING)); for (int i = 0; i < notes.size(); i++) { addRowToNotesGrid(notes.get(i)); } }
private AttendanceClinicalNotesVoCollection populateCommentsFromScreen() { AttendanceClinicalNotesVoCollection commentsCollection = new AttendanceClinicalNotesVoCollection(); for (int i = 0; i < form.grdNotes().getRows().size(); i++) { commentsCollection.add(form.grdNotes().getRows().get(i).getValue()); } return commentsCollection; }
private void populateCommentGrid(AttendanceClinicalNotesVoCollection comments) { if (comments == null) return; comments.sort(new CommentsDateComparator(SortOrder.DESCENDING)); for (int i = 0; i < comments.size(); i++) { addRowToNotesGrid(comments.get(i)); } }
private void populateGrid(AttendanceClinicalNotesVoCollection collAttendanceClinicalNotes) { form.grdNotes().getRows().clear(); if (collAttendanceClinicalNotes == null || collAttendanceClinicalNotes.size() == 0) return; for(AttendanceClinicalNotesVo note : collAttendanceClinicalNotes) { if(note == null) continue; addNoteRow(note); } }
private void populateGrid(AttendanceClinicalNotesVoCollection collNotes) { form.grdNotes().getRows().clear(); if (collNotes==null || collNotes.size()==0) return; for (int i=0;i<collNotes.size();i++) { addNoteRow(collNotes.get(i)); } }