Package org.adempiere.impexp
Class GridTabCSVExporter
java.lang.Object
org.adempiere.impexp.GridTabCSVExporter
- All Implemented Interfaces:
IGridTabExporter
CSV Exporter for GridTab
- Author:
- Carlos Ruiz, Juan David Arboleda
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexport(GridTab gridTab, List<GridTab> childs, boolean currentRowOnly, File file, int indxDetailSelected) export gridTab data to filegetSuggestedFileName(GridTab gridTab) getWhereClause(GridTab childTab, GridTab parentGrid, int currentParentIndex) Deprecated.booleanisExportableTab(GridTab detail) Check if exported support the export of a child tabMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.adempiere.base.IGridTabExporter
isAdvanced, isExportChildTabsForCurrentRowOnly, maxDeepOfChildTab
-
Constructor Details
-
GridTabCSVExporter
public GridTabCSVExporter()
-
-
Method Details
-
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 interfaceIGridTabExporterindxDetailSelected- index of selected child tab
-
getWhereClause
@Deprecated public String getWhereClause(GridTab childTab, GridTab parentGrid, int currentParentIndex) Deprecated.- Parameters:
childTab-parentGrid-currentParentIndex-- Returns:
-
getFileExtension
- Specified by:
getFileExtensionin interfaceIGridTabExporter- Returns:
- file extension (csv, zip, ect)
-
getFileExtensionLabel
- Specified by:
getFileExtensionLabelin interfaceIGridTabExporter- Returns:
- label for file extension
-
getContentType
- Specified by:
getContentTypein interfaceIGridTabExporter- Returns:
- mime content type
-
getSuggestedFileName
- Specified by:
getSuggestedFileNamein interfaceIGridTabExporter- Returns:
- suggested file name
-
isExportableTab
Check if exported support the export of a child tab just export display tab, one level deep, not read only and not account tab- Specified by:
isExportableTabin interfaceIGridTabExporter- Returns:
- true if export is supported, false otherwise
-