*/
OdfTable oTable = oDoc.getTableByName("SamplesTable");
for (Sample s : samples) {
OdfTableRow row = oTable.appendRow();
OdfTableCell cell0 = row.getCellByIndex(0);
OdfTextParagraph cp0 = new OdfTextParagraph(contentDom);
cp0.setTextContent(s.getAlias());
cp0.setProperty(StyleTextPropertiesElement.FontSize, "8pt");
cell0.getOdfElement().appendChild(cp0);
OdfTableCell cell1 = row.getCellByIndex(1);
OdfTextParagraph cp1 = new OdfTextParagraph(contentDom);
cp1.setTextContent(s.getScientificName());
cp1.setProperty(StyleTextPropertiesElement.FontSize, "8pt");
cell1.getOdfElement().appendChild(cp1);
OdfTableCell cell2 = row.getCellByIndex(2);
OdfTextParagraph cp2 = new OdfTextParagraph(contentDom);
cp2.setTextContent(s.getIdentificationBarcode());
cp2.setProperty(StyleTextPropertiesElement.FontSize, "8pt");
cell2.getOdfElement().appendChild(cp2);
OdfTableCell cell3 = row.getCellByIndex(3);
OdfTextParagraph cp3 = new OdfTextParagraph(contentDom);
cp3.setTextContent(s.getSampleType());
cp3.setProperty(StyleTextPropertiesElement.FontSize, "8pt");
cell3.getOdfElement().appendChild(cp3);
}
int count = 0;
for (OdfTableRow row : oTable.getRowList()) {
if (count % 2 != 0) {
for (int i = 0; i < row.getCellCount(); i++) {
row.getCellByIndex(i).setCellBackgroundColor("#EEEEEE");
}
}
count++;
}