public class ToolbarWarningsService extends Object
| Constructor and Description |
|---|
ToolbarWarningsService() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMessage(boolean atTheTop,
String message,
Object... args)
Add a message as a resource key to the list of messages.
|
void |
addMessage(String message)
Add a message as a resource key
|
static ToolbarWarningsService |
getInstance() |
String |
getMessagesAsString() |
String |
getMessagesValueAsString(Locale locale)
Return resources messages as a String using || as separator.
|
void |
removeMessage(String message)
Removes the specified message from the messages list.
|
public static ToolbarWarningsService getInstance()
public void addMessage(String message)
message - public void addMessage(boolean atTheTop,
String message,
Object... args)
message - the message resource key to be addedatTheTop - true if the messages should be put at the top of the message list; otherwise it is appended to the endpublic void removeMessage(String message)
message - the message to be removedpublic String getMessagesAsString()
Copyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.