s1.addCell(l);
l = new Label(0, 63, "Data validation: list");
s1.addCell(l);
Blank b = new Blank(1,63);
cellFeatures = new WritableCellFeatures();
ArrayList al = new ArrayList();
al.add("bagpuss");
al.add("clangers");
al.add("ivor the engine");
al.add("noggin the nog");
cellFeatures.setDataValidationList(al);
b.setCellFeatures(cellFeatures);
s1.addCell(b);
l = new Label(0, 64, "Data validation: number > 4.5");
s1.addCell(l);
b = new Blank(1,64);
cellFeatures = new WritableCellFeatures();
cellFeatures.setNumberValidation(4.5, WritableCellFeatures.GREATER_THAN);
b.setCellFeatures(cellFeatures);
s1.addCell(b);
l = new Label(0, 65, "Data validation: named range");
s1.addCell(l);
l = new Label(4, 65, "tiger");
s1.addCell(l);
l = new Label(5, 65, "sword");
s1.addCell(l);
l = new Label(6, 65, "honour");
s1.addCell(l);
l = new Label(7, 65, "company");
s1.addCell(l);
l = new Label(8, 65, "victory");
s1.addCell(l);
l = new Label(9, 65, "fortress");
s1.addCell(l);
b = new Blank(1,65);
cellFeatures = new WritableCellFeatures();
cellFeatures.setDataValidationRange("validation_range");
b.setCellFeatures(cellFeatures);
s1.addCell(b);
// Set the row grouping
s1.setRowGroup(39, 45, false);
// s1.setRowGroup(72, 74, true);