removed deprecated API calls

This commit is contained in:
2019-09-12 19:02:39 +02:00
parent 53991b7f56
commit 2128ad95bc
2 changed files with 323 additions and 322 deletions

View File

@ -36,7 +36,4 @@
<scope>provided</scope>
</dependency>
</dependencies>
<properties>
<netbeans.hint.license>apache20</netbeans.hint.license>
</properties>
</project>

View File

@ -184,7 +184,7 @@ public class WorkbookApp {
newCell.setCellValue(oldCell.getNumericCellValue());
break;
case BLANK:
newCell.setCellType(CellType.BLANK);
newCell.setBlank();
break;
case BOOLEAN:
newCell.setCellValue(oldCell.getBooleanCellValue());
@ -306,7 +306,11 @@ public class WorkbookApp {
}
protected void autoResizeColumns(Sheet sheet) {
int maxColumn = sheet.getRow(0).getPhysicalNumberOfCells();
autoResizeColumns(sheet,0);
}
protected void autoResizeColumns(Sheet sheet, int referenceRow) {
int maxColumn = sheet.getRow(referenceRow).getPhysicalNumberOfCells();
for (int currentColumn = 0; currentColumn < maxColumn; currentColumn++) {
if (LOGGER.isTraceEnabled()) {
LOGGER.trace("Auto resize column {}/{}", currentColumn, maxColumn);