Package org.adempiere.impexp
Class GridTabExcelExporter
- java.lang.Object
-
- org.adempiere.impexp.AbstractExcelExporter
-
- org.adempiere.impexp.GridTabExcelExporter
-
- All Implemented Interfaces:
IGridTabExporter
public class GridTabExcelExporter extends AbstractExcelExporter implements IGridTabExporter
Excel Exporter Adapter for GridTab- Author:
- Teo Sarca, www.arhipac.ro
- FR [ 1943731 ] Window data export functionality
-
-
Field Summary
-
Fields inherited from class org.adempiere.impexp.AbstractExcelExporter
colSuppressRepeats, log, m_lang, m_workbook
-
-
Constructor Summary
Constructors Constructor Description GridTabExcelExporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexport(GridTab gridTab, List<GridTab> childs, boolean currentRowOnly, File file, int indxDetailSelected)export gridTab data to fileintgetColumnCount()Get Columns CountStringgetContentType()protected intgetCurrentRow()intgetDisplayType(int row, int col)Get cell display type (seeDisplayType)StringgetFileExtension()StringgetFileExtensionLabel()StringgetHeaderName(int col)Get column header nameintgetRowCount()Get Rows CountStringgetSuggestedFileName(GridTab gridTab)ObjectgetValueAt(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 logicbooleanisExportableTab(GridTab gridTab)Check a tab (detail tab) is support to export in this exporterbooleanisFunctionRow()Is 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 row-
Methods inherited from class org.adempiere.impexp.AbstractExcelExporter
createHeaderFooter, createParameter, export, export, export, exportToWorkbook, formatPage, getCellFormat, getCtx, getFormCell, getFormRow, getLanguage, getNoOfParameter, isCurrentRowOnly, isForm, isSetFormRowPosition, isSuppressNull, isVisible, setCurrentRowOnly, setFreezePane, setNoOfParameter
-
-
-
-
Method Detail
-
getColumnCount
public int getColumnCount()
Description copied from class:AbstractExcelExporterGet Columns Count- Specified by:
getColumnCountin classAbstractExcelExporter- Returns:
- number of columns
-
getDisplayType
public int getDisplayType(int row, int col)Description copied from class:AbstractExcelExporterGet cell display type (seeDisplayType)- Specified by:
getDisplayTypein classAbstractExcelExporter- Parameters:
row- row indexcol- column index- Returns:
- display type
-
getHeaderName
public String getHeaderName(int col)
Description copied from class:AbstractExcelExporterGet column header name- Specified by:
getHeaderNamein classAbstractExcelExporter- Parameters:
col- column index- Returns:
- header name
-
getRowCount
public int getRowCount()
Description copied from class:AbstractExcelExporterGet Rows Count- Specified by:
getRowCountin classAbstractExcelExporter- Returns:
- number of rows
-
getValueAt
public Object getValueAt(int row, int col)
Description copied from class:AbstractExcelExporterGet cell value- Specified by:
getValueAtin classAbstractExcelExporter- Parameters:
row- row indexcol- column index- Returns:
- cell value
-
isColumnPrinted
public boolean isColumnPrinted(int col)
Description copied from class:AbstractExcelExporterCheck if column is printed (displayed)- Specified by:
isColumnPrintedin classAbstractExcelExporter- Parameters:
col- column index- Returns:
- true if is visible
-
isFunctionRow
public boolean isFunctionRow()
Description copied from class:AbstractExcelExporterIs the current Row a Function Row- Specified by:
isFunctionRowin classAbstractExcelExporter- Returns:
- true if function row
-
isPageBreak
public boolean isPageBreak(int row, int col)Description copied from class:AbstractExcelExporterCheck if there is a page break on given cell- Specified by:
isPageBreakin classAbstractExcelExporter- Parameters:
row- row indexcol- column index- Returns:
- true if there is a page break
-
setCurrentRow
protected void setCurrentRow(int row)
Description copied from class:AbstractExcelExporterSet current row- Specified by:
setCurrentRowin classAbstractExcelExporter- Parameters:
row- row index
-
getCurrentRow
protected int getCurrentRow()
- Specified by:
getCurrentRowin classAbstractExcelExporter- Returns:
- current row index
-
export
public void export(GridTab gridTab, List<GridTab> childs, boolean currentRowOnly, File file, int indxDetailSelected)
Description copied from interface:IGridTabExporterexport gridTab data to file- Specified by:
exportin interfaceIGridTabExporter
-
getFileExtension
public String getFileExtension()
- Specified by:
getFileExtensionin interfaceIGridTabExporter- Returns:
- file extension
-
getFileExtensionLabel
public String getFileExtensionLabel()
- Specified by:
getFileExtensionLabelin interfaceIGridTabExporter- Returns:
- description for file extension
-
getContentType
public String getContentType()
- Specified by:
getContentTypein interfaceIGridTabExporter- Returns:
- mime type
-
getSuggestedFileName
public String getSuggestedFileName(GridTab gridTab)
- Specified by:
getSuggestedFileNamein interfaceIGridTabExporter- Returns:
- suggested file name
-
isExportableTab
public boolean isExportableTab(GridTab gridTab)
Check a tab (detail tab) is support to export in this exporter no detail tab is support to export with excel- Specified by:
isExportableTabin interfaceIGridTabExporter- Returns:
-
isDisplayed
public boolean isDisplayed(int row, int col)Description copied from class:AbstractExcelExporterCheck if there is a display logic- Specified by:
isDisplayedin classAbstractExcelExporter- Parameters:
row- row indexcol- column index- Returns:
- true if there is no logic or evaluate logic specified in print item
-
-