Class XlsxTableFormat
java.lang.Object
overit.geocall.basic.ui.xlsx.format.XlsxTableFormat
- All Implemented Interfaces:
IXlsxFormat,Identified
This class implements
The class implements table format of
Identified and IXlsxFormat.The class implements table format of
XlsxTableView.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.poi.xssf.usermodel.XSSFCellStylegetCellStyle(org.apache.poi.ss.usermodel.Sheet sheet, XlsxTableView tabella, XlsxComponent cella) Gets a newXSSFCellStylewith all style from a cell and table, passed by parameters.org.apache.poi.xssf.usermodel.XSSFCellStylegetCellStyle(org.apache.poi.ss.usermodel.Sheet sheet, XlsxTableView tabella, XlsxComponent cella, String styleName) Gets a newXSSFCellStylewith all style from a cell and table, passed by parameters.Returns theIdentityassociated to the componentprotected voidsetBackgroundColor(XlsxComponent cell, org.apache.poi.xssf.usermodel.XSSFCellStyle style) protected voidsetFontStyle(org.apache.poi.ss.usermodel.Sheet sheet, XlsxTableView table, XlsxComponent cell, org.apache.poi.xssf.usermodel.XSSFCellStyle cs) voidsetIdentity(Identity id) Sets theIdentityto the component
-
Constructor Details
-
XlsxTableFormat
public XlsxTableFormat()
-
-
Method Details
-
getIdentity
Description copied from interface:IdentifiedReturns theIdentityassociated to the component- Specified by:
getIdentityin interfaceIdentified- Returns:
- The Identity of the user currently logged in the application
-
setIdentity
Description copied from interface:IdentifiedSets theIdentityto the component- Specified by:
setIdentityin interfaceIdentified- 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 newXSSFCellStylewith all style from a cell and table, passed by parameters.- Parameters:
sheet- The Excel sheettabella- 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
XSSFCellStylewith 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 newXSSFCellStylewith all style from a cell and table, passed by parameters.- Parameters:
sheet- The Excel sheettabella- 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
XSSFCellStylewith 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)
-