Class XlsxColumnFormat
java.lang.Object
overit.geocall.basic.ui.xlsx.format.XlsxColumnFormat
- All Implemented Interfaces:
IXlsxFormat,Identified
This class implements
The class implements column format of XlsxTableView or POIResourceView.
Identified and IXlsxFormat.The class implements column format of XlsxTableView or POIResourceView.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.poi.xssf.usermodel.XSSFCellStylegetCellStyle(org.apache.poi.ss.usermodel.Sheet sheet, XlsxComponent cella, int rowNum) There are two different format, one with a colored background and one without it, to be able to differentiate even and odd rows.org.apache.poi.xssf.usermodel.XSSFCellStylegetCellStyle(org.apache.poi.ss.usermodel.Sheet sheet, XlsxComponent cella, int rowNum, String styleName) There are two different format, one with a colored background and one without it, to be able to differentiate even and odd rows.Returns theIdentityassociated to the componentprotected static org.apache.poi.xssf.usermodel.XSSFFontgiveFont(org.apache.poi.ss.usermodel.Sheet sheet, XlsxComponent cella) protected org.apache.poi.xssf.usermodel.XSSFCellStylemakeCellStyle(org.apache.poi.ss.usermodel.Sheet sheet, XlsxComponent cella, org.apache.poi.xssf.usermodel.XSSFFont font, boolean pari) voidsetIdentity(Identity id) Sets theIdentityto the component
-
Field Details
-
_cs
protected org.apache.poi.xssf.usermodel.XSSFCellStyle[] _cs
-
-
Constructor Details
-
XlsxColumnFormat
public XlsxColumnFormat()
-
-
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, XlsxComponent cella, int rowNum) There are two different format, one with a colored background and one without it, to be able to differentiate even and odd rows.- Parameters:
sheet- The sheet where is the cellcella- The cell to considerrowNum- The row number- Returns:
- An
XSSFCellStylediscerned if the row is even or odd
-
getCellStyle
public org.apache.poi.xssf.usermodel.XSSFCellStyle getCellStyle(org.apache.poi.ss.usermodel.Sheet sheet, XlsxComponent cella, int rowNum, String styleName) There are two different format, one with a colored background and one without it, to be able to differentiate even and odd rows.- Parameters:
sheet- The sheet where is the cellcella- The cell to considerrowNum- The row numberstyleName- Optional name for style caching. If null, caching is bypassed. When provided and caching is active, enables style reuse for performance optimization.- Returns:
- An
XSSFCellStylediscerned if the row is even or odd
-
giveFont
protected static org.apache.poi.xssf.usermodel.XSSFFont giveFont(org.apache.poi.ss.usermodel.Sheet sheet, XlsxComponent cella) -
makeCellStyle
protected org.apache.poi.xssf.usermodel.XSSFCellStyle makeCellStyle(org.apache.poi.ss.usermodel.Sheet sheet, XlsxComponent cella, org.apache.poi.xssf.usermodel.XSSFFont font, boolean pari)
-