private void populateCommentGrid(ReferralToSpecialtyCommentsVoCollection comments) { if (comments == null) return; for (int i = 0; i < comments.size(); i++) { addCommentToReferral(comments.get(i)); } }
private ReferralToSpecialtyCommentsVoCollection ReferralComments() { ReferralToSpecialtyCommentsVoCollection commentsCollection = new ReferralToSpecialtyCommentsVoCollection(); for (int i = 0; i < form.grdComments().getRows().size(); i++) { commentsCollection.add(form.grdComments().getRows().get(i).getValue()); } return commentsCollection; }