Package io.jmix.reportsflowui.helper
Class OutputTypeHelper
java.lang.Object
io.jmix.reportsflowui.helper.OutputTypeHelper
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.component.orderedlayout.HorizontalLayoutcreateOutputTypeBadge(@Nullable ReportOutputType outputType) Creates a small visual badge combining the output-type icon with the localised type name.getIcon(@Nullable ReportOutputType outputType)
-
Field Details
-
messages
-
icons
-
-
Constructor Details
-
OutputTypeHelper
public OutputTypeHelper()
-
-
Method Details
-
getSupportedOutputTypes
- Returns:
- list of currently supported output types that user should see in UI
-
createOutputTypeBadge
public com.vaadin.flow.component.orderedlayout.HorizontalLayout createOutputTypeBadge(@Nullable ReportOutputType outputType) Creates a small visual badge combining the output-type icon with the localised type name. Intended for use in grid column renderers. Returns an empty layout whenoutputTypeisnull. -
getIcon
- Returns:
- the
JmixFontIconthat best represents the given output type; falls back toJmixFontIcon.FILE_Ofornullor unrecognised types
-