|
|
@ -86,6 +86,9 @@ public class CsvCell extends CellBase { |
|
|
|
this.csvRow = csvRow; |
|
|
|
this.csvRow = csvRow; |
|
|
|
this.columnIndex = columnIndex; |
|
|
|
this.columnIndex = columnIndex; |
|
|
|
this.cellType = cellType; |
|
|
|
this.cellType = cellType; |
|
|
|
|
|
|
|
if (this.cellType == null) { |
|
|
|
|
|
|
|
this.cellType = CellType._NONE; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
@ -98,6 +101,7 @@ public class CsvCell extends CellBase { |
|
|
|
FormulaData formulaData = new FormulaData(); |
|
|
|
FormulaData formulaData = new FormulaData(); |
|
|
|
formulaData.setFormulaValue(formula); |
|
|
|
formulaData.setFormulaValue(formula); |
|
|
|
this.formulaData = formulaData; |
|
|
|
this.formulaData = formulaData; |
|
|
|
|
|
|
|
this.cellType = CellType.FORMULA; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
@ -108,6 +112,7 @@ public class CsvCell extends CellBase { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected void setCellValueImpl(double value) { |
|
|
|
protected void setCellValueImpl(double value) { |
|
|
|
numberValue = BigDecimal.valueOf(value); |
|
|
|
numberValue = BigDecimal.valueOf(value); |
|
|
|
|
|
|
|
this.cellType = CellType.NUMERIC; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
@ -116,11 +121,13 @@ public class CsvCell extends CellBase { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
this.dateValue = LocalDateTime.ofInstant(value.toInstant(), ZoneId.systemDefault()); |
|
|
|
this.dateValue = LocalDateTime.ofInstant(value.toInstant(), ZoneId.systemDefault()); |
|
|
|
|
|
|
|
this.cellType = CellType.NUMERIC; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected void setCellValueImpl(LocalDateTime value) { |
|
|
|
protected void setCellValueImpl(LocalDateTime value) { |
|
|
|
this.dateValue = value; |
|
|
|
this.dateValue = value; |
|
|
|
|
|
|
|
this.cellType = CellType.NUMERIC; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
@ -129,16 +136,19 @@ public class CsvCell extends CellBase { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
this.dateValue = LocalDateTime.ofInstant(value.toInstant(), ZoneId.systemDefault()); |
|
|
|
this.dateValue = LocalDateTime.ofInstant(value.toInstant(), ZoneId.systemDefault()); |
|
|
|
|
|
|
|
this.cellType = CellType.NUMERIC; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected void setCellValueImpl(String value) { |
|
|
|
protected void setCellValueImpl(String value) { |
|
|
|
this.stringValue = value; |
|
|
|
this.stringValue = value; |
|
|
|
|
|
|
|
this.cellType = CellType.STRING; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected void setCellValueImpl(RichTextString value) { |
|
|
|
protected void setCellValueImpl(RichTextString value) { |
|
|
|
richTextString = value; |
|
|
|
richTextString = value; |
|
|
|
|
|
|
|
this.cellType = CellType.STRING; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
@ -241,11 +251,13 @@ public class CsvCell extends CellBase { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void setCellValue(boolean value) { |
|
|
|
public void setCellValue(boolean value) { |
|
|
|
this.booleanValue = value; |
|
|
|
this.booleanValue = value; |
|
|
|
|
|
|
|
this.cellType = CellType.BOOLEAN; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void setCellErrorValue(byte value) { |
|
|
|
public void setCellErrorValue(byte value) { |
|
|
|
this.numberValue = BigDecimal.valueOf(value); |
|
|
|
this.numberValue = BigDecimal.valueOf(value); |
|
|
|
|
|
|
|
this.cellType = CellType.ERROR; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|