|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jetrix.Message
net.jetrix.messages.ChannelMessage
net.jetrix.messages.TextMessage
public abstract class TextMessage
A generic internationalized text message.
Constructor Summary | |
---|---|
TextMessage()
|
Method Summary | |
---|---|
String |
getKey()
Return the key of the message. |
String |
getRawMessage(Protocol protocol,
Locale locale)
Return the view of this message in the specified protocol. |
String |
getText()
Return the text of this message using the default server locale. |
String |
getText(Locale locale)
Return the text of this message using the specified locale. |
void |
setKey(String key,
Object... params)
Set the key and the parameters of the message for internationalized text messages. |
void |
setText(String text)
Set the text of the message (locale independant). |
Methods inherited from class net.jetrix.messages.ChannelMessage |
---|
getChannel, getSlot, setChannel, setSlot |
Methods inherited from class net.jetrix.Message |
---|
getDestination, getSource, getTime, setDestination, setRawMessage, setSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextMessage()
Method Detail |
---|
public String getText()
public String getText(Locale locale)
public void setText(String text)
public String getKey()
public void setKey(String key, Object... params)
public String getRawMessage(Protocol protocol, Locale locale)
Message
getRawMessage
in class Message
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |