Package io.jmix.reports.util
Class MsgBundleTools
java.lang.Object
io.jmix.reports.util.MsgBundleTools
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLocalizedValue(String messageKey, String msgBundle, String defaultValue) Get localized caption for the reports model object.getMsgBundleValues(String localeBundle)
-
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 - ifmessageKeyis specified, take caption from global message bundle using current locale. 2 - ifmsgBundlecontains caption for current locale, use this caption. 3 - otherwise, usedefaultValue- Parameters:
messageKey- optional key for the message in the global bundle.msgBundle- bundle inPropertiesformatdefaultValue- default value- Returns:
- localized caption
-
getMsgBundleValues
-