Class XlsxColumnMeasure

All Implemented Interfaces:
Serializable, Identified

@Component public class XlsxColumnMeasure extends XlsxColumnDouble
See Also:
  • Field Details

    • unit

      protected Measure unit
    • displayUnit

      protected Measure displayUnit
    • converter

      protected MeasureConverter converter
    • outputPrecision

      protected int outputPrecision
    • any

      protected Any any
  • Constructor Details

    • XlsxColumnMeasure

      public XlsxColumnMeasure()
  • Method Details

    • setUNIT

      public void setUNIT(String unit)
      Sets the unit of measurement, from which starts the conversion and that represent the unit whith which the value is shown on server side.
      Parameters:
      unit - The unit of measurement, from which starts the conversion and that represent the unit whith which the value is shown on server side.
    • setDISPLAYUNIT

      public void setDISPLAYUNIT(String displayUnit)
      Sets unit of measurement with which show the value on client side.
      The value will be converted (on the client side) into the display unit set, according to what has been set in the user's language dictionary.
      For example, if it's set (as cultural convention) that $MEASURE_km=mi,2, it means that the display unit "km" will be converted into "mi"
      Parameters:
      displayUnit - The unit of measurement with which show the value on client side.
    • getUnit

      public Measure getUnit()
      Gets the Measure from which starts the conversion and that represent the unit whith which the value is represent on server side.
      Returns:
      The Measure from which starts the conversion and that represent the unit whith which the value is represent on server side.
    • getDisplayUnit

      public Measure getDisplayUnit()
      Gets the Measure with which show the value on server side.
      Returns:
      The Measure with which show the value on server side.
    • getLabel

      public String getLabel()
      Description copied from class: XlsxComponent
      Gets the label of the instance.
      Overrides:
      getLabel in class XlsxComponent
      Returns:
      The label of the instance.
    • getConverter

      protected MeasureConverter getConverter(Measure input, Measure output)
    • setupConversion

      protected void setupConversion()
    • 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 XlsxColumnDouble
      Parameters:
      sheet - The sheet
      row - The list of rows
      rowNum - The number of row
      colNum - The cell number
      cs - The XSSFCellStyle
      Returns:
      The cell