Package io.jmix.reports.libintegration
Class JmixTableFormatter
java.lang.Object
com.haulmont.yarg.formatters.impl.AbstractFormatter
io.jmix.reports.libintegration.JmixTableFormatter
- All Implemented Interfaces:
com.haulmont.yarg.formatters.ReportFormatter
@Component("report_JmixTableFormatter")
@Scope("prototype")
public class JmixTableFormatter
extends com.haulmont.yarg.formatters.impl.AbstractFormatter
-
Nested Class Summary
Nested classes/interfaces inherited from class com.haulmont.yarg.formatters.impl.AbstractFormatter
com.haulmont.yarg.formatters.impl.AbstractFormatter.BandPathAndParameterName, com.haulmont.yarg.formatters.impl.AbstractFormatter.InlinerAndMatcher
-
Field Summary
Modifier and TypeFieldDescriptionprotected MessageTools
protected Metadata
protected MetadataTools
protected StandardSerialization
Fields inherited from class com.haulmont.yarg.formatters.impl.AbstractFormatter
ALIAS_GROUP, ALIAS_WITH_BAND_NAME_PATTERN, ALIAS_WITH_BAND_NAME_REGEXP, BAND_NAME_DECLARATION_PATTERN, BAND_NAME_DECLARATION_REGEXP, contentInliners, defaultFormatProvider, outputStream, outputType, reportTemplate, rootBand, scripting, SIMPLE_ALIAS_REGEXP, STRING_FUNCTION_GROUP, supportedOutputTypes, UNIVERSAL_ALIAS_PATTERN, UNIVERSAL_ALIAS_REGEXP, VALUE
-
Constructor Summary
ModifierConstructorDescriptionprotected
JmixTableFormatter
(com.haulmont.yarg.formatters.factory.FormatterFactoryInput formatterFactoryInput) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkInstanceNameLoaded
(Object value) protected boolean
containsHeader
(Set<JmixTableData.ColumnInfo> headers, String header) protected boolean
containsLowerCaseDuplicate
(JmixTableData.ColumnInfo columnInfo, Set<JmixTableData.ColumnInfo> headers) protected JmixTableData
getTableData
(TemplateTableDescription templateTableDescription, Map<String, List<KeyValueEntity>> transformedData, Map<String, Set<JmixTableData.ColumnInfo>> headerMap, Map<String, List<com.haulmont.yarg.structure.BandData>> childrenBands) void
protected JmixTableData
transformData
(com.haulmont.yarg.structure.BandData rootBand) Methods inherited from class com.haulmont.yarg.formatters.impl.AbstractFormatter
applyStringFunction, checkThreadInterrupted, containsJustOneAlias, createDocument, defaultFormat, findBandByPath, formatValue, formatValue, getAllAliases, getContentInlinerForFormat, getContentInliners, getFormatString, inlineParameterValue, insertBandDataToString, isGroovyScript, separateBandNameAndParameterName, setContentInliners, setDefaultFormatProvider, setScripting, unwrapParameterName, wrapWithReportingException, wrapWithReportingException
-
Field Details
-
messageTools
-
metadata
-
metadataTools
-
standardSerialization
-
-
Constructor Details
-
JmixTableFormatter
protected JmixTableFormatter(com.haulmont.yarg.formatters.factory.FormatterFactoryInput formatterFactoryInput)
-
-
Method Details
-
renderDocument
public void renderDocument() -
transformData
-
getTableData
protected JmixTableData getTableData(TemplateTableDescription templateTableDescription, Map<String, List<KeyValueEntity>> transformedData, Map<String, Set<JmixTableData.ColumnInfo>> headerMap, Map<String, List<com.haulmont.yarg.structure.BandData>> childrenBands) -
containsLowerCaseDuplicate
protected boolean containsLowerCaseDuplicate(JmixTableData.ColumnInfo columnInfo, Set<JmixTableData.ColumnInfo> headers) -
checkInstanceNameLoaded
-
containsHeader
-