Package org.adempiere.impexp
Class ArrayExcelExporter
java.lang.Object
org.adempiere.impexp.AbstractXLSXExporter
org.adempiere.impexp.ArrayExcelExporter
Export to excel format (xlsx) from ArrayList of data
- Author:
- Teo Sarca, SC ARHIPAC SERVICE SRL
-
Field Summary
Fields inherited from class org.adempiere.impexp.AbstractXLSXExporter
colSuppressRepeats, log, m_lang, m_workbook
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Get Columns CountgetCtx()
protected int
int
getDisplayType
(int row, int col) Get cell display type (seeDisplayType
)getHeaderName
(int col) Get column header nameint
Get Rows CountgetValueAt
(int row, int col) Get cell valueboolean
isColumnPrinted
(int col) Check if column is printed (displayed)boolean
isDisplayed
(int row, int col) Check if there is a display logicboolean
Is the current Row a Function Rowboolean
isPageBreak
(int row, int col) Check if there is a page break on given cellprotected void
setCurrentRow
(int row) Set current rowMethods inherited from class org.adempiere.impexp.AbstractXLSXExporter
createHeaderFooter, createParameter, export, export, export, exportToWorkbook, formatPage, getCellFormat, getFormCell, getFormRow, getLanguage, getNoOfParameter, isCurrentRowOnly, isForm, isSetFormRowPosition, isSuppressNull, isVisible, setCurrentRowOnly, setFreezePane, setNoOfParameter
-
Constructor Details
-
ArrayExcelExporter
- Parameters:
ctx
-data
-
-
-
Method Details
-
getCtx
- Overrides:
getCtx
in classAbstractXLSXExporter
-
getColumnCount
public int getColumnCount()Description copied from class:AbstractXLSXExporter
Get Columns Count- Specified by:
getColumnCount
in classAbstractXLSXExporter
- Returns:
- number of columns
-
getDisplayType
public int getDisplayType(int row, int col) Description copied from class:AbstractXLSXExporter
Get cell display type (seeDisplayType
)- Specified by:
getDisplayType
in classAbstractXLSXExporter
- Parameters:
row
- row indexcol
- column index- Returns:
- display type
-
getHeaderName
Description copied from class:AbstractXLSXExporter
Get column header name- Specified by:
getHeaderName
in classAbstractXLSXExporter
- Parameters:
col
- column index- Returns:
- header name
-
getRowCount
public int getRowCount()Description copied from class:AbstractXLSXExporter
Get Rows Count- Specified by:
getRowCount
in classAbstractXLSXExporter
- Returns:
- number of rows
-
getValueAt
Description copied from class:AbstractXLSXExporter
Get cell value- Specified by:
getValueAt
in classAbstractXLSXExporter
- Parameters:
row
- row indexcol
- column index- Returns:
- cell value
-
isColumnPrinted
public boolean isColumnPrinted(int col) Description copied from class:AbstractXLSXExporter
Check if column is printed (displayed)- Specified by:
isColumnPrinted
in classAbstractXLSXExporter
- Parameters:
col
- column index- Returns:
- true if is visible
-
isFunctionRow
public boolean isFunctionRow()Description copied from class:AbstractXLSXExporter
Is the current Row a Function Row- Specified by:
isFunctionRow
in classAbstractXLSXExporter
- Returns:
- true if function row
-
isPageBreak
public boolean isPageBreak(int row, int col) Description copied from class:AbstractXLSXExporter
Check if there is a page break on given cell- Specified by:
isPageBreak
in classAbstractXLSXExporter
- Parameters:
row
- row indexcol
- column index- Returns:
- true if there is a page break
-
setCurrentRow
protected void setCurrentRow(int row) Description copied from class:AbstractXLSXExporter
Set current row- Specified by:
setCurrentRow
in classAbstractXLSXExporter
- Parameters:
row
- row index
-
getCurrentRow
protected int getCurrentRow()- Specified by:
getCurrentRow
in classAbstractXLSXExporter
- Returns:
- current row index
-
isDisplayed
public boolean isDisplayed(int row, int col) Description copied from class:AbstractXLSXExporter
Check if there is a display logic- Specified by:
isDisplayed
in classAbstractXLSXExporter
- Parameters:
row
- row indexcol
- column index- Returns:
- true if there is no logic or evaluate logic specified in print item
-