Class MsgBundleTools

java.lang.Object
io.jmix.reports.util.MsgBundleTools

@Component("report_MsgBundleTools") public class MsgBundleTools extends Object
  • Constructor Details

    • MsgBundleTools

      public MsgBundleTools()
  • Method Details

    • getLocalizedValue

      @Nullable public String getLocalizedValue(@Nullable String messageKey, String msgBundle, String defaultValue)
      Get localized caption for the reports model object. Rules: 1 - if messageKey is specified, take caption from global message bundle using current locale. 2 - if msgBundle contains caption for current locale, use this caption. 3 - otherwise, use defaultValue
      Parameters:
      messageKey - optional key for the message in the global bundle.
      msgBundle - bundle in Properties format
      defaultValue - default value
      Returns:
      localized caption
    • getMsgBundleValues

      protected Map<String,String> getMsgBundleValues(@Nullable String localeBundle)