Package com._1c.g5.v8.dt.qw.ui.utils
Class SpreadsheetDocumentTemplateBuilder
- java.lang.Object
-
- com._1c.g5.v8.dt.qw.ui.utils.SpreadsheetDocumentTemplateBuilder
-
public class SpreadsheetDocumentTemplateBuilder extends Object
Spreadsheet document template builder for output query result
-
-
Constructor Summary
Constructors Constructor Description SpreadsheetDocumentTemplateBuilder(QueryWizardSource source, QueryTextResultProcessing.ResultProcessingParams params)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Pair<SpreadsheetDocument,BasicTemplate>buildSpreadsheetDocument(org.eclipse.emf.ecore.EObject mdObject, boolean isReplaceTemplate)Build spreadsheet documentvoidfillSpreadsheetDocument(SpreadsheetDocument spreadsheetDocument, List<QuerySchemaTotalControlPoint> totals, List<QuerySchemaExpression> totalsExpressions, List<QuerySchemaExpression> allFields, boolean isCommonTotals)Fill spreadsheet documentstatic BasicTemplatefindTemplateWithName(org.eclipse.emf.ecore.EObject mdObject, String templateName)Find template with name
-
-
-
Constructor Detail
-
SpreadsheetDocumentTemplateBuilder
public SpreadsheetDocumentTemplateBuilder(QueryWizardSource source, QueryTextResultProcessing.ResultProcessingParams params)
- Parameters:
source- - query wizard sourceparams- - result processing parameters
-
-
Method Detail
-
findTemplateWithName
public static BasicTemplate findTemplateWithName(org.eclipse.emf.ecore.EObject mdObject, String templateName)
Find template with name- Parameters:
mdObject- - MdObjecttemplateName- - template name- Returns:
- template or null
-
buildSpreadsheetDocument
public Pair<SpreadsheetDocument,BasicTemplate> buildSpreadsheetDocument(org.eclipse.emf.ecore.EObject mdObject, boolean isReplaceTemplate)
Build spreadsheet document- Parameters:
mdObject- - parent MDObject, used for generate templateisReplaceTemplate- - if false, if template with name exist will be generated new name, otherwise template will be replaced- Returns:
- pair with spreadsheet document and template
-
fillSpreadsheetDocument
public void fillSpreadsheetDocument(SpreadsheetDocument spreadsheetDocument, List<QuerySchemaTotalControlPoint> totals, List<QuerySchemaExpression> totalsExpressions, List<QuerySchemaExpression> allFields, boolean isCommonTotals)
Fill spreadsheet document- Parameters:
spreadsheetDocument- - spreadsheet documenttotals- - totals controls pointstotalsExpressions- - totals expressionsallFields- - selected fields in first operatorisCommonTotals- - is common totals
-
-