|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jChatBox.Chat.Msg
This class implements Message features.
A message has :
From field (user's name of the sender).
To field (user's name of the receiver or all or broadcast).
Date field (date of the message).
Msg field (message content).
Type field (message type).
Field Summary | |
static int |
BAN
|
static int |
JOIN
|
static int |
KICK
|
static int |
LEFT
|
static int |
NORMAL
|
static int |
PRIVATE
|
static int |
SYSTEM
|
static int |
WARNING
|
Constructor Summary | |
Msg(java.util.Date date,
java.lang.String from,
java.lang.String to,
java.lang.String mesg)
Constructs NORMAL message. |
|
Msg(java.util.Date date,
java.lang.String from,
java.lang.String to,
java.lang.String mesg,
int type)
Constructs message. |
Method Summary | |
java.util.Date |
getDate()
Returns message's date. |
java.lang.String |
getFrom()
Returns "From" field. |
java.lang.String |
getMsg()
Returns "Message". |
java.lang.String |
getTo()
Returns "To" field. |
int |
getType()
Returns "Type" field. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int SYSTEM
public static final int JOIN
public static final int LEFT
public static final int PRIVATE
public static final int KICK
public static final int BAN
public static final int WARNING
public static final int NORMAL
Constructor Detail |
public Msg(java.util.Date date, java.lang.String from, java.lang.String to, java.lang.String mesg)
public Msg(java.util.Date date, java.lang.String from, java.lang.String to, java.lang.String mesg, int type)
Method Detail |
public java.util.Date getDate()
public java.lang.String getFrom()
public java.lang.String getMsg()
public java.lang.String getTo()
public int getType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |