Class ExportXlsHelper<R extends io.vertigo.datamodel.data.model.DataObject>
java.lang.Object
io.vertigo.quarto.plugins.exporter.xls.ExportXlsHelper<R>
- Type Parameters:
R- Type d'objet pour la liste
public final class ExportXlsHelper<R extends io.vertigo.datamodel.data.model.DataObject>
extends Object
Helper pour les editions xls.
- Author:
- kleegroup
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddData(io.vertigo.datamodel.data.model.DataObject criterion, List<String> criterionExcludedColumnNames) Add a criterion to the export.voidaddDtList(io.vertigo.datamodel.data.model.DtList<R> dtcToExport, List<String> collectionColumnNameList, Map<String, String> specificLabelMap) Add a DTC to the export.voidprepareExport(io.vertigo.datamodel.data.model.DtList<R> dtcToExport, List<String> collectionColumnNames, io.vertigo.datamodel.data.model.DataObject criterion, List<String> criterionExcludedColumnNames, Map<String, String> specificLabelMap) Prepare the export generation.
-
Constructor Details
-
ExportXlsHelper
Constructor.- Parameters:
fileName- nom du fichier résultat de l'exporttitle- titre de la feuille principale de l'export
-
-
Method Details
-
prepareExport
public void prepareExport(io.vertigo.datamodel.data.model.DtList<R> dtcToExport, List<String> collectionColumnNames, io.vertigo.datamodel.data.model.DataObject criterion, List<String> criterionExcludedColumnNames, Map<String, String> specificLabelMap) Prepare the export generation. If the screen allows 2 exports, then one must use 2 actions- Parameters:
dtcToExport- the objects collection to be exportedcollectionColumnNames- list of the columns taht must be exported in the collectioncriterion- search criterion if existscriterionExcludedColumnNames- list of the criteria that must be excluded for the exportspecificLabelMap- map of the column names to be used instead of the default label associated with the field
-
addDtList
public void addDtList(io.vertigo.datamodel.data.model.DtList<R> dtcToExport, List<String> collectionColumnNameList, Map<String, String> specificLabelMap) Add a DTC to the export.- Parameters:
dtcToExport- collection to be exportedcollectionColumnNameList- names of the columns that must be exportedspecificLabelMap- map of the column names to be used instead of the default label associated with the field
-
addData
public void addData(io.vertigo.datamodel.data.model.DataObject criterion, List<String> criterionExcludedColumnNames) Add a criterion to the export.- Parameters:
criterion- criterion object to be exportedcriterionExcludedColumnNames- names of the columns to be excluded
-