Class XlsxColumnLookup

All Implemented Interfaces:
Serializable, Identified

@Component public class XlsxColumnLookup extends XlsxColumn
The class extends XlsxColumn.
The class implements and represent the column's cells with a look up inside, of an Excel sheet.
See Also:
  • Field Details

    • _staticView

      protected StaticView _staticView
    • _dbvSv

      protected DBView _dbvSv
    • _tf

      protected TextFormat _tf
    • _nLabel

      protected int _nLabel
    • _ignoreDecodeError

      protected boolean _ignoreDecodeError
    • _columnLabel

      protected String[] _columnLabel
    • _staticViewFieldPos

      protected int[] _staticViewFieldPos
  • Constructor Details

    • XlsxColumnLookup

      public XlsxColumnLookup()
  • Method Details

    • setIGNOREDECODEERROR

      public void setIGNOREDECODEERROR(String s)
      Sets if you want to ignore decode error.
      Parameters:
      s - 'true' or '1' if you want to egnore decode error, 'false' or '0' otherwise.
    • setSTATICVIEW

      public void setSTATICVIEW(String s)
      Sets Static View from which take datas.
      Parameters:
      s - The Static View to set.
    • setFORMAT

      public void setFORMAT(String s)
      Description copied from class: XlsxComponent
      Sets the number type format of the cell.
      Overrides:
      setFORMAT in class XlsxComponent
      Parameters:
      s - Allow format are:
      • '%' - Percent float format.
      • 'i' - Integer format.
      • 'f' - Float format.
      • 'e' - Accounting red float format.
      • default - Account float format.
    • setCOLUMNLABEL

      public void setCOLUMNLABEL(String s)
      Sets the column label array.
      Parameters:
      s - The string with the column's list separated by comma.
    • setupMetaData

      public void setupMetaData(HashMap dbfields)
      Description copied from class: XlsxColumn
      Method used for the field init starting from a resultSet. The name of the column must be null in case the field is not in the DBView or in the ResultSet.
      Overrides:
      setupMetaData in class XlsxColumn
      Parameters:
      dbfields - The HashMap for the init
    • setupMetaData

      public void setupMetaData(DBView dbfields)
      Description copied from class: XlsxColumn
      Method used for the field init starting from the DBView. The name of the column must be null in case the field is not in the DBView or in the ResultSet.
      Overrides:
      setupMetaData in class XlsxColumn
      Parameters:
      dbfields - The DBView for the init
    • initCellFormat

      protected void initCellFormat()
      Overrides:
      initCellFormat in class XlsxComponent
    • giveCell

      protected 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)
      Description copied from class: XlsxCell
      Method to implement that allows to set the orientation, the font etc
      Overrides:
      giveCell in class XlsxColumn
      Parameters:
      sheet - The sheet
      row - The list of rows
      rowNum - The number of row
      colNum - The cell number
      cs - The XSSFCellStyle
      Returns:
      The cell