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
Fields -
Constructor Summary
Constructors -
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.voidsetMessageGroup(String messageGroup) Sets source message group.protected voidsetMessages(Messages messages)
-
Field Details
-
messages
-
messageGroup
-
-
Constructor Details
-
MessageBundleImpl
public MessageBundleImpl()
-
-
Method Details
-
setMessages
-
getMessageGroup
- Specified by:
getMessageGroupin interfaceMessageBundle- Returns:
- associated message group
-
setMessageGroup
Description copied from interface:MessageBundleSets source message group.- Specified by:
setMessageGroupin interfaceMessageBundle- Parameters:
messageGroup- associated message group
-
getMessage
Description copied from interface:MessageBundleGet localized message from the message group associated with this frame or window.- Specified by:
getMessagein interfaceMessageBundle- Parameters:
key- message key- Returns:
- localized message
- See Also:
-
formatMessage
Description copied from interface:MessageBundleGet localized message from the message group associated with this frame or window, and use it as a format string for parameters provided.- Specified by:
formatMessagein interfaceMessageBundle- Parameters:
key- message keyparams- parameter values- Returns:
- formatted string or the key in case of IllegalFormatException
- See Also:
-