Class XlsxColumnFormula

All Implemented Interfaces:
Serializable, Identified

@Component public class XlsxColumnFormula extends XlsxColumn
The class extends XlsxColumn.
The class implements and represent the column's cell with a function, of an Excel sheet.
See Also:
  • Constructor Details

    • XlsxColumnFormula

      public XlsxColumnFormula()
  • Method Details

    • setFUNCTION

      public void setFUNCTION(String s)
      Sets the function to insert into the cell.
      Parameters:
      s - The function to set.
    • giveCell

      public org.apache.poi.ss.usermodel.Cell giveCell(org.apache.poi.ss.usermodel.Sheet sheet, ArrayList row, int rowNum, int colNum, org.apache.poi.xssf.usermodel.XSSFCellStyle cs)
      #sval will be substituted with the value NAME of the DBView and quoted #val will be substituted with the value NAME of the DBView e.g. function="CLEAN("#val")" take in the db the field RAGIONESOCIALE='mario ' obtaining the function 'mario' #scol will be substituted with the column letter #srow will be substituted with the number of the row
      Overrides:
      giveCell in class XlsxColumn
      Parameters:
      sheet - The sheet
      row - The list of rows
      rowNum - The number of the row
      colNum - The number of the column
      cs - The XSSFCellStyle
      Returns:
      The cell
    • parseFunction

      protected String parseFunction(ArrayList row, int rowNum, int colNum, org.apache.poi.xssf.usermodel.XSSFCellStyle cs)
    • cleanValue

      protected Object cleanValue(Object value)