|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Message
Describes the behavior of a text message that can be displayed in web page. A messsage has an ID and a message context from where to get the message as text. Messages are localized and can have tokens.
| Method Summary | |
|---|---|
MessageContext |
getContext()
Gets the message context for this message. |
String |
getId()
Gets the unique ID of this message. |
String[] |
getParams()
Gets params for this message. |
String |
getText(Locale loc)
Gets the message text this message object represents. |
Map<String,String> |
getTokens()
Gets tokens or placeholders for this message. |
void |
setTokens(Map<String,String> tokens)
Sets tokens or placeholders for this message. |
| Method Detail |
|---|
String getId()
MessageContext getContext()
String getText(Locale loc)
loc - The locale of the message.
void setTokens(Map<String,String> tokens)
tokens - The tokens for this message.Map<String,String> getTokens()
String[] getParams()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||