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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
export
(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.boolean
isExportableTab
(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, wait
Methods 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:IGridTabExporter
export gridTab data to file- Specified by:
export
in interfaceIGridTabExporter
indxDetailSelected
- 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:
getFileExtension
in interfaceIGridTabExporter
- Returns:
- file extension (csv, zip, ect)
-
getFileExtensionLabel
- Specified by:
getFileExtensionLabel
in interfaceIGridTabExporter
- Returns:
- label for file extension
-
getContentType
- Specified by:
getContentType
in interfaceIGridTabExporter
- Returns:
- mime content type
-
getSuggestedFileName
- Specified by:
getSuggestedFileName
in 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:
isExportableTab
in interfaceIGridTabExporter
- Returns:
- true if export is supported, false otherwise
-