Class XlsxTableFormat

java.lang.Object
overit.geocall.basic.ui.xlsx.format.XlsxTableFormat
All Implemented Interfaces:
IXlsxFormat, Identified

public class XlsxTableFormat extends Object implements Identified, IXlsxFormat
This class implements Identified and IXlsxFormat.
The class implements table format of XlsxTableView.
  • Constructor Details

    • XlsxTableFormat

      public XlsxTableFormat()
  • Method Details

    • getIdentity

      public Identity getIdentity()
      Description copied from interface: Identified
      Returns the Identity associated to the component
      Specified by:
      getIdentity in interface Identified
      Returns:
      The Identity of the user currently logged in the application
    • setIdentity

      public void setIdentity(Identity id)
      Description copied from interface: Identified
      Sets the Identity to the component
      Specified by:
      setIdentity in interface Identified
      Parameters:
      id - The Identity that must be associated to the component
    • getCellStyle

      public org.apache.poi.xssf.usermodel.XSSFCellStyle getCellStyle(org.apache.poi.ss.usermodel.Sheet sheet, XlsxTableView tabella, XlsxComponent cella) throws Exception
      Gets a new XSSFCellStyle with all style from a cell and table, passed by parameters.
      Parameters:
      sheet - The Excel sheet
      tabella - The table from which take the shrink to fit param, the title wrap attribute and the use of header color.
      cella - The cell from which take the computed style.
      Returns:
      A new XSSFCellStyle with all style from a cell and a table, passed by parameter.
      Throws:
      Exception - should not happen
    • getCellStyle

      public org.apache.poi.xssf.usermodel.XSSFCellStyle getCellStyle(org.apache.poi.ss.usermodel.Sheet sheet, XlsxTableView tabella, XlsxComponent cella, String styleName) throws Exception
      Gets a new XSSFCellStyle with all style from a cell and table, passed by parameters.
      Parameters:
      sheet - The Excel sheet
      tabella - The table from which take the shrink to fit param, the title wrap attribute and the use of header color.
      cella - The cell from which take the computed style.
      styleName - Optional name for style caching. If null, caching is bypassed. When provided and caching is active, enables style reuse for performance optimization.
      Returns:
      A new XSSFCellStyle with all style from a cell and a table, passed by parameter.
      Throws:
      Exception - should not happen
    • setBackgroundColor

      protected void setBackgroundColor(XlsxComponent cell, org.apache.poi.xssf.usermodel.XSSFCellStyle style)
    • setFontStyle

      protected void setFontStyle(org.apache.poi.ss.usermodel.Sheet sheet, XlsxTableView table, XlsxComponent cell, org.apache.poi.xssf.usermodel.XSSFCellStyle cs)