Class OutputTypeHelper

java.lang.Object
io.jmix.reportsflowui.helper.OutputTypeHelper

@Component("report_OutputTypeHelper") public class OutputTypeHelper extends Object
  • Field Details

    • messages

      @Autowired protected Messages messages
    • icons

      @Autowired protected Icons icons
  • Constructor Details

    • OutputTypeHelper

      public OutputTypeHelper()
  • Method Details

    • getSupportedOutputTypes

      public List<ReportOutputType> 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 when outputType is null.
    • getIcon

      public JmixFontIcon getIcon(@Nullable ReportOutputType outputType)
      Returns:
      the JmixFontIcon that best represents the given output type; falls back to JmixFontIcon.FILE_O for null or unrecognised types