Package org.compiere.report.core
Class RModelExcelExporter
java.lang.Object
org.adempiere.impexp.AbstractXLSXExporter
org.compiere.report.core.RModelExcelExporter
Excel exporter implementation for RModel
- 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet Columns Countprotected intintgetDisplayType(int row, int col) Get cell display type (seeDisplayType)getHeaderName(int col) Get column header nameintGet Rows CountgetValueAt(int row, int col) Get cell valuebooleanisColumnPrinted(int col) Check if column is printed (displayed)booleanisDisplayed(int row, int col) Check if there is a display logicbooleanIs the current Row a Function RowbooleanisPageBreak(int row, int col) Check if there is a page break on given cellprotected voidsetCurrentRow(int row) Set current rowMethods inherited from class org.adempiere.impexp.AbstractXLSXExporter
createHeaderFooter, createParameter, export, export, export, exportToWorkbook, formatPage, getCellFormat, getCtx, getFormCell, getFormRow, getLanguage, getNoOfParameter, isCurrentRowOnly, isForm, isSetFormRowPosition, isSuppressNull, isVisible, setCurrentRowOnly, setFreezePane, setNoOfParameter
-
Constructor Details
-
RModelExcelExporter
- Parameters:
model-
-
-
Method Details
-
getColumnCount
public int getColumnCount()Description copied from class:AbstractXLSXExporterGet Columns Count- Specified by:
getColumnCountin classAbstractXLSXExporter- Returns:
- number of columns
-
getDisplayType
public int getDisplayType(int row, int col) Description copied from class:AbstractXLSXExporterGet cell display type (seeDisplayType)- Specified by:
getDisplayTypein classAbstractXLSXExporter- Parameters:
row- row indexcol- column index- Returns:
- display type
-
getHeaderName
Description copied from class:AbstractXLSXExporterGet column header name- Specified by:
getHeaderNamein classAbstractXLSXExporter- Parameters:
col- column index- Returns:
- header name
-
getRowCount
public int getRowCount()Description copied from class:AbstractXLSXExporterGet Rows Count- Specified by:
getRowCountin classAbstractXLSXExporter- Returns:
- number of rows
-
getValueAt
Description copied from class:AbstractXLSXExporterGet cell value- Specified by:
getValueAtin classAbstractXLSXExporter- Parameters:
row- row indexcol- column index- Returns:
- cell value
-
isColumnPrinted
public boolean isColumnPrinted(int col) Description copied from class:AbstractXLSXExporterCheck if column is printed (displayed)- Specified by:
isColumnPrintedin classAbstractXLSXExporter- Parameters:
col- column index- Returns:
- true if is visible
-
isFunctionRow
public boolean isFunctionRow()Description copied from class:AbstractXLSXExporterIs the current Row a Function Row- Specified by:
isFunctionRowin classAbstractXLSXExporter- Returns:
- true if function row
-
isPageBreak
public boolean isPageBreak(int row, int col) Description copied from class:AbstractXLSXExporterCheck if there is a page break on given cell- Specified by:
isPageBreakin 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:AbstractXLSXExporterSet current row- Specified by:
setCurrentRowin classAbstractXLSXExporter- Parameters:
row- row index
-
getCurrentRow
protected int getCurrentRow()- Specified by:
getCurrentRowin classAbstractXLSXExporter- Returns:
- current row index
-
isDisplayed
public boolean isDisplayed(int row, int col) Description copied from class:AbstractXLSXExporterCheck if there is a display logic- Specified by:
isDisplayedin classAbstractXLSXExporter- Parameters:
row- row indexcol- column index- Returns:
- true if there is no logic or evaluate logic specified in print item
-