Package io.jmix.reports.entity
Class ReportValueFormat
java.lang.Object
io.jmix.reports.entity.ReportValueFormat
- All Implemented Interfaces:
CopyingSystemState<ReportValueFormat>,ReportFieldFormat,Serializable
public class ReportValueFormat
extends Object
implements ReportFieldFormat, CopyingSystemState<ReportValueFormat>
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyFrom(ReportValueFormat source) Invoked by the framework when copying the entity instance.getId()getName()voidsetCustomFormatter(CustomValueFormatter<?> customFormatter) voidsetFormatString(String formatString) voidsetGroovyScript(Boolean groovyScript) voidvoidvoidsetValueName(String valueName)
-
Field Details
-
id
-
valueName
-
formatString
-
report
-
groovyScript
-
customFormatter
-
-
Constructor Details
-
ReportValueFormat
public ReportValueFormat()
-
-
Method Details
-
getId
-
setId
-
getReport
-
setReport
-
getValueName
-
setValueName
-
getFormatString
-
setFormatString
-
getGroovyScript
-
setGroovyScript
-
getName
- Specified by:
getNamein interfaceReportFieldFormat- Returns:
- formatted field name. Should also contain all parent band names. Example: Band1.Band2.field1
-
getFormat
- Specified by:
getFormatin interfaceReportFieldFormat- Returns:
- format string Example: ##,# for decimals, dd-MM-yyyy for dates, etc.
-
isGroovyScript
- Specified by:
isGroovyScriptin interfaceReportFieldFormat- Returns:
- boolean
trueif the groovy script, otherwisefalse
-
getCustomFormatter
- Specified by:
getCustomFormatterin interfaceReportFieldFormat- Returns:
- custom formatter object. If it exists, it takes precedence over other format options.
-
setCustomFormatter
-
copyFrom
Description copied from interface:CopyingSystemStateInvoked by the framework when copying the entity instance.- Specified by:
copyFromin interfaceCopyingSystemState<ReportValueFormat>- Parameters:
source- source entity
-