Package org.adempiere.pipo2
Class GridTab2PackExporter
java.lang.Object
org.adempiere.pipo2.GridTab2PackExporter
- All Implemented Interfaces:
IGridTabExporter
- Author:
- hengsin
-
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) boolean
isExportableTab
(GridTab gridTab) 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
-
GridTab2PackExporter
public GridTab2PackExporter()
-
-
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
-
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 With 2Pack, just trl tabs are not intended to be exported (they are exported as translation- Specified by:
isExportableTab
in interfaceIGridTabExporter
- Returns:
- true if export is supported, false otherwise
-