}
public void setRotation(short rotation) {
- // TODO Auto-generated method stub
-
+ getCellAlignment().setTextRotation(rotation);
}
public void setTopBorderColor(short color) {
}
public void setWrapText(boolean wrapped) {
- // TODO Auto-generated method stub
-
+ getCellAlignment().setWrapText(wrapped);
}
private XSSFCellBorder getCellBorder() {
return cellAlignement.getTextRotation();
}
+ public void setTextRotation(long rotation) {
+ cellAlignement.setTextRotation(rotation);
+ }
+
public boolean getWrapText() {
return cellAlignement.getWrapText();
}
+
+ public void setWrapText(boolean wrapped) {
+ cellAlignement.setWrapText(wrapped);
+ }
}
cellStyle.setVerticalAlignmentEnum(STVerticalAlignment.JUSTIFY);
assertEquals((short)4, cellStyle.getVerticalAlignment());
}
+
+ public void testGetSetWrapText() {
+ assertFalse(cellStyle.getWrapText());
+ cellXf.getAlignment().setWrapText(true);
+ assertTrue(cellStyle.getWrapText());
+ cellStyle.setWrapText(false);
+ assertFalse(cellXf.getAlignment().getWrapText());
+ }
}