Class XlsxColumnDouble

All Implemented Interfaces:
Serializable, Identified
Direct Known Subclasses:
XlsxColumnMeasure

@Component public class XlsxColumnDouble extends XlsxColumnLong
This class extends XlsxColumnLong.
The class implements and represent the column Double of an Excel sheet.
See Also:
  • Field Details

    • _symbols

      protected String _symbols
    • _df

      protected DecimalFormat _df
    • _forcedFormat

      protected boolean _forcedFormat
    • _forcedSymbols

      protected boolean _forcedSymbols
    • _forceDouble

      protected boolean _forceDouble
  • Constructor Details

    • XlsxColumnDouble

      public XlsxColumnDouble()
  • Method Details

    • setFORMAT

      public void setFORMAT(String s)
      Sets the column double format.
      Overrides:
      setFORMAT in class XlsxComponent
      Parameters:
      s - The format to set.
    • setSYMBOLS

      public void setSYMBOLS(String s)
      Sets the symbol to display.
      Parameters:
      s - The symbol to set.
    • setFORCEDOUBLE

      public void setFORCEDOUBLE(String s)
      Sets if you want to force the number value to double or not.
      Parameters:
      s - 'true' or '1' if you want to force conversion to double, 'false' or '0' otherwise.
    • 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 XlsxColumnLong
      Parameters:
      sheet - The sheet
      row - The list of rows
      rowNum - The number of row
      colNum - The cell number
      cs - The XSSFCellStyle
      Returns:
      The cell
    • giveCellValue

      protected Double giveCellValue(Object val)
    • createDecimalFormat

      protected static DecimalFormat createDecimalFormat(String s, String f)
    • getNextChar

      public static char getNextChar(StringBuilder sb)
      Extract the first characther form the symbol String.
      Parameters:
      sb - The string form which extract the first character.
      Returns:
      The first characther form the symbol string.
    • getNextInt

      public static int getNextInt(StringBuilder sb)
      Extract the positive integer from the stirng symbol head, if the string is empty return -1.
      Parameters:
      sb - The string from which extract the positive number, if exists.
      Returns:
      The positive integer from the stirng symbol head, if the string is empty return -1.
    • getNextString

      public static String getNextString(StringBuilder sb, String delim)