/*
* Public Methods
*/
public void print(HtmlLinePrinter body) throws org.dbwiki.exception.WikiException {
AnnotationList annotations = _request.node().annotation();
if (annotations.size() > 0) {
body.openTABLE(CSS.CSSAnnotationListing);
body.openTR();
body.openTH(CSS.CSSAnnotationListing);
body.text("Comment");
body.closeTH();
body.openTH(CSS.CSSAnnotationListing);
body.text("User");
body.closeTH();
body.openTH(CSS.CSSAnnotationListing);
body.text("Date");
body.closeTH();
body.closeTR();
for (int iAnnotation = 0; iAnnotation < annotations.size(); iAnnotation++) {
body.openTR();
String css = null;
if ((iAnnotation % 2) == 0) {
css = CSS.CSSAnnotationRowEven;
} else {
css = CSS.CSSAnnotationRowOdd;
}
body.openTD(css);
body.add(annotations.get(iAnnotation).text());
body.closeTD();
body.openTD(css);
if (annotations.get(iAnnotation).user() != null) {
body.add(annotations.get(iAnnotation).user().fullName());
} else {
body.add(User.UnknownUserName);
}
body.closeTD();
body.openTD(css);
body.add(annotations.get(iAnnotation).date());
body.closeTD();
body.closeTR();
}
body.closeTABLE();
} else {