public XWPFCommentsDecorator(XWPFParagraph paragraph, XWPFParagraphDecorator nextDecorator) { super(paragraph, nextDecorator); XWPFComment comment; commentText = new StringBuilder(64); for (CTMarkupRange anchor : paragraph.getCTP().getCommentRangeStartArray()) { if ((comment = paragraph.getDocument().getCommentByID(anchor.getId().toString())) != null) { commentText.append("\tComment by ") .append(comment.getAuthor()) .append(": ") .append(comment.getText()); } } }
public XWPFCommentsDecorator(XWPFParagraph paragraph, XWPFParagraphDecorator nextDecorator) { super(paragraph, nextDecorator); XWPFComment comment; commentText = new StringBuilder(64); for (CTMarkupRange anchor : paragraph.getCTP().getCommentRangeStartArray()) { if ((comment = paragraph.getDocument().getCommentByID(anchor.getId().toString())) != null) { commentText.append("\tComment by ") .append(comment.getAuthor()) .append(": ") .append(comment.getText()); } } }
public XWPFCommentsDecorator(XWPFParagraph paragraph, XWPFParagraphDecorator nextDecorator) { super(paragraph, nextDecorator); XWPFComment comment; commentText = new StringBuffer(); for(CTMarkupRange anchor : paragraph.getCTP().getCommentRangeStartList()) { if((comment = paragraph.getDocument().getCommentByID(anchor.getId().toString())) != null) commentText.append("\tComment by " + comment.getAuthor()+": "+comment.getText()); } }