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 SummaryModifier 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.
- 
Method Details- 
setMessageGroupSets source message group.- Parameters:
- messageGroup- associated message group
 
- 
getMessageGroupString getMessageGroup()- Returns:
- associated message group
 
- 
getMessageGet localized message from the message group associated with this frame or window.- Parameters:
- key- message key
- Returns:
- localized message
- See Also:
 
- 
formatMessageGet 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 key
- params- parameter values
- Returns:
- formatted string or the key in case of IllegalFormatException
- See Also:
 
 
-