removed deprecated API calls
This commit is contained in:
@ -36,7 +36,4 @@
|
|||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<properties>
|
|
||||||
<netbeans.hint.license>apache20</netbeans.hint.license>
|
|
||||||
</properties>
|
|
||||||
</project>
|
</project>
|
||||||
@ -184,7 +184,7 @@ public class WorkbookApp {
|
|||||||
newCell.setCellValue(oldCell.getNumericCellValue());
|
newCell.setCellValue(oldCell.getNumericCellValue());
|
||||||
break;
|
break;
|
||||||
case BLANK:
|
case BLANK:
|
||||||
newCell.setCellType(CellType.BLANK);
|
newCell.setBlank();
|
||||||
break;
|
break;
|
||||||
case BOOLEAN:
|
case BOOLEAN:
|
||||||
newCell.setCellValue(oldCell.getBooleanCellValue());
|
newCell.setCellValue(oldCell.getBooleanCellValue());
|
||||||
@ -306,7 +306,11 @@ public class WorkbookApp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected void autoResizeColumns(Sheet sheet) {
|
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++) {
|
for (int currentColumn = 0; currentColumn < maxColumn; currentColumn++) {
|
||||||
if (LOGGER.isTraceEnabled()) {
|
if (LOGGER.isTraceEnabled()) {
|
||||||
LOGGER.trace("Auto resize column {}/{}", currentColumn, maxColumn);
|
LOGGER.trace("Auto resize column {}/{}", currentColumn, maxColumn);
|
||||||
|
|||||||
Reference in New Issue
Block a user