Package io.jmix.ui.screen.impl
Class MessageBundleImpl
java.lang.Object
io.jmix.ui.screen.impl.MessageBundleImpl
- All Implemented Interfaces:
MessageBundle
@Scope("prototype")
@Component("ui_MessageBundle")
public class MessageBundleImpl
extends Object
implements MessageBundle
-
Field Summary
-
Constructor Summary
-
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.protected void
setMessages
(Messages messages)
-
Field Details
-
messages
-
messageGroup
-
-
Constructor Details
-
MessageBundleImpl
public MessageBundleImpl()
-
-
Method Details
-
setMessages
-
getMessageGroup
- Specified by:
getMessageGroup
in interfaceMessageBundle
- Returns:
- associated message group
-
setMessageGroup
Description copied from interface:MessageBundle
Sets source message group.- Specified by:
setMessageGroup
in interfaceMessageBundle
- Parameters:
messageGroup
- associated message group
-
getMessage
Description copied from interface:MessageBundle
Get localized message from the message group associated with this frame or window.- Specified by:
getMessage
in interfaceMessageBundle
- Parameters:
key
- message key- Returns:
- localized message
- See Also:
-
formatMessage
Description copied from interface:MessageBundle
Get localized message from the message group associated with this frame or window, and use it as a format string for parameters provided.- Specified by:
formatMessage
in interfaceMessageBundle
- Parameters:
key
- message keyparams
- parameter values- Returns:
- formatted string or the key in case of IllegalFormatException
- See Also:
-