Package io.jmix.ui.screen
Interface MessageBundle
- All Known Implementing Classes:
MessageBundleImpl
public interface MessageBundle
Interface that provides messages from a message group bound to screen controller.
-
Method Summary
Modifier and TypeMethodDescriptionformatMessage
(String key, Object... params) Get localized message from the message group associated with this frame or window, and use it as a format string for parameters provided.getMessage
(String key) Get localized message from the message group associated with this frame or window.void
setMessageGroup
(String messageGroup) Sets source message group.
-
Method Details
-
setMessageGroup
Sets source message group.- Parameters:
messageGroup
- associated message group
-
getMessageGroup
String getMessageGroup()- Returns:
- associated message group
-
getMessage
Get localized message from the message group associated with this frame or window.- Parameters:
key
- message key- Returns:
- localized message
- See Also:
-
formatMessage
Get localized message from the message group associated with this frame or window, and use it as a format string for parameters provided.- Parameters:
key
- message keyparams
- parameter values- Returns:
- formatted string or the key in case of IllegalFormatException
- See Also:
-