public class MultipleMessageKeyLocalizedMessage extends Object implements LocalizedMessage, LocalizationChangeObservable
LocalizedMessage
and joins them on
toString(Locale, Object...)
using the provided seperator
(default is a space
" ").
Important: The arguments provided to toString(Locale, Object...)
are ignored! The
arguments must be provided independently for each MessageKeyLocalizedMessage
added.Constructor and Description |
---|
MultipleMessageKeyLocalizedMessage(LocalizedMessage... messages) |
MultipleMessageKeyLocalizedMessage(String seperator,
LocalizedMessage... messages) |
Modifier and Type | Method and Description |
---|---|
void |
addMessage(LocalizedMessage message) |
Class<ResourceBundleChangedEvent> |
getChangeNotificationEvent()
Return the event type that will be fired when the localizations which are used by this
component have changed.
This event type can be used to register an event listener to be notified about the changes of the localizations which is for instance useful when doing some local caching of localized content. |
String |
toString(Locale locale,
Object... arguments)
Returns the localized message.
|
public MultipleMessageKeyLocalizedMessage(LocalizedMessage... messages)
public MultipleMessageKeyLocalizedMessage(String seperator, LocalizedMessage... messages)
public void addMessage(LocalizedMessage message)
public Class<ResourceBundleChangedEvent> getChangeNotificationEvent()
LocalizationChangeObservable
getChangeNotificationEvent
in interface LocalizationChangeObservable
public String toString(Locale locale, Object... arguments)
LocalizedMessage
toString
in interface LocalizedMessage
locale
- The locale for the message.arguments
- Can be used, if some arguments might be set or to overwrite already given
arguments.Copyright © 2019 Communote team. All rights reserved.