Package io.jmix.charts.model.export
Class ExportMenuItem
java.lang.Object
io.jmix.charts.model.AbstractChartObject
io.jmix.charts.model.export.ExportMenuItem
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetDelay()
getLabel()
getTitle()
setDateFormat
(String dateFormat) Sets the date format.Sets delay by number of seconds.setDelimiter
(String delimiter) Sets a string that is used as a column delimiter.Set escape to false if you want to escape strings.setFileName
(String fileName) Sets a file name that is used for generated export files.setFormat
(ExportFormat format) setLossless
(Boolean lossless) Set lossless to true if you want enable image optimization when printing.setMultiplier
(Double multiplier) Sets scale factor for the generated image.setPageOrientation
(PageOrientation pageOrientation) Sets page orientation of the generated PDF file.setPageOrigin
(Boolean pageOrigin) Set pageOrigin to false if the origin of the generated PDF should be hidden (pdf format only).setPageSize
(PageSize pageSize) Sets the format of PDF page.@Max(1L) @Min(0L) ExportMenuItem
setQuality
(Double quality) Sets a quality of the resulting JPG image.Set whether to enclose strings in double quotes.setStringify
(Boolean stringify) Set stringify to true if you want to convert all cell content to strings.setWithHeader
(Boolean withHeader) Set withHeader to false if you don't want to add header row with column names.
-
Constructor Details
-
ExportMenuItem
public ExportMenuItem()
-
-
Method Details
-
getFormat
-
setFormat
-
getLabel
-
setLabel
-
getTitle
-
setTitle
-
getFileName
- Returns:
- file name
-
setFileName
Sets a file name that is used for generated export files.- Parameters:
fileName
- file name- Returns:
- export menu item
-
getPageOrientation
- Returns:
- page orientation of the generated PDF file
-
setPageOrientation
@StudioProperty(type=ENUMERATION, defaultValue="PORTRAIT") public ExportMenuItem setPageOrientation(PageOrientation pageOrientation) Sets page orientation of the generated PDF file. Default is portrait.- Parameters:
pageOrientation
- page orientation- Returns:
- export menu item
-
getPageOrigin
- Returns:
- true if the origin of the generated PDF is shown
-
setPageOrigin
Set pageOrigin to false if the origin of the generated PDF should be hidden (pdf format only).- Parameters:
pageOrigin
- pageOrigin option- Returns:
- export menu item
-
getPageSize
- Returns:
- format of PDF page
-
setPageSize
@StudioProperty(type=ENUMERATION, defaultValue="A4") public ExportMenuItem setPageSize(PageSize pageSize) Sets the format of PDF page. Default value is A4.- Parameters:
pageSize
- page size- Returns:
- export menu item
-
getQuality
- Returns:
- a quality of the resulting JPG image
-
setQuality
@StudioProperty(defaultValue="1") @Max(1L) @Min(0L) public @Max(1L) @Min(0L) ExportMenuItem setQuality(Double quality) Sets a quality of the resulting JPG image. Default value is 1. Available values 0 - 1.- Parameters:
quality
- quality- Returns:
- export menu item
-
getMultiplier
- Returns:
- scale factor for the generated image
-
setMultiplier
Sets scale factor for the generated image.- Parameters:
multiplier
- multiplier- Returns:
- export menu item
-
getDelay
- Returns:
- delay by number of seconds
-
setDelay
Sets delay by number of seconds.- Parameters:
delay
- delay- Returns:
- export menu item
-
getLossless
- Returns:
- true if lossless is enabled
-
setLossless
Set lossless to true if you want enable image optimization when printing.- Parameters:
lossless
- lossless option- Returns:
- export menu item
-
getDelimiter
- Returns:
- column delimiter
-
setDelimiter
Sets a string that is used as a column delimiter. Default value is ",".- Parameters:
delimiter
- delimiter- Returns:
- export menu item
-
getQuotes
- Returns:
- true if double quotes are enabled
-
setQuotes
Set whether to enclose strings in double quotes.- Parameters:
quotes
- quotes option- Returns:
- export menu item
-
getEscape
- Returns:
- true if strings isn't escaped
-
setEscape
Set escape to false if you want to escape strings.- Parameters:
escape
- escape option- Returns:
- export menu item
-
getWithHeader
- Returns:
- true if header row with column names is added
-
setWithHeader
Set withHeader to false if you don't want to add header row with column names. Work for CSV and XLSX formats.- Parameters:
withHeader
- withHeader option- Returns:
- export menu item
-
getDateFormat
- Returns:
- the date format
-
setDateFormat
Sets the date format. Work for XLSX format. Do not forget to set parseDates to true inCategoryAxis
.- Parameters:
dateFormat
- date format- Returns:
- export menu item
-
getStringify
- Returns:
- true if all cell content is converted to strings
-
setStringify
Set stringify to true if you want to convert all cell content to strings. Work for XLSX format.- Parameters:
stringify
- stringify option- Returns:
- export menu item
-