|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ants.move.core.teacher.chat.ChatWindow
Implementation of Chat User Interface.
Constructor Summary | |
ChatWindow(ChatModel cm,
java.awt.TextField cF,
java.awt.TextArea cA,
java.awt.List cU,
ants.core.Place p)
Sole constructor. |
Method Summary | |
void |
addThing(java.lang.String thingKey)
|
void |
addUsers()
|
void |
chatField_actionPerformed(java.awt.event.ActionEvent e)
chatField's actionPerformed() method. |
void |
chatUsers_actionPerformed(java.awt.event.ActionEvent e)
|
void |
consoleMessage(java.lang.String msg)
Display a system message on the Chat Window. |
void |
init()
Applet's entry point. |
void |
onMessage(java.util.Hashtable ht)
Method triggered when a message arrives. |
void |
removeThing(java.lang.String thingKey)
|
void |
userJoined(java.lang.String u)
Method triggered when a user arrives. |
void |
userLeft(java.lang.String u)
Method triggered when a user leaves the place. |
void |
usersChanged(java.lang.String u)
Method triggered when hung users have been detected |
void |
writeLine(java.lang.String msg)
Displays message on Chat Window. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ChatWindow(ChatModel cm, java.awt.TextField cF, java.awt.TextArea cA, java.awt.List cU, ants.core.Place p)
iclass
- Chat internal classexceptions
- No exceptions thrownMethod Detail |
public void init()
params
- Noneexceptions
- No exceptions thrownpublic void addUsers()
public void consoleMessage(java.lang.String msg)
String
- Messageexceptions
- No exceptions thrownpublic void chatField_actionPerformed(java.awt.event.ActionEvent e)
e
- Eventexceptions
- No exceptions thrownpublic void chatUsers_actionPerformed(java.awt.event.ActionEvent e)
public void writeLine(java.lang.String msg)
writeLine
in interface ChatListener
msg
- String to be displayedexceptions
- No exceptions thrownpublic void userJoined(java.lang.String u)
ants.core.PlaceListener
userJoined
in interface ants.core.PlaceListener
ants.core.PlaceListener
userName
- New user`s namepublic void userLeft(java.lang.String u)
ants.core.PlaceListener
userLeft
in interface ants.core.PlaceListener
ants.core.PlaceListener
userName
- Name of leaving user.public void onMessage(java.util.Hashtable ht)
ants.core.PlaceListener
onMessage
in interface ants.core.PlaceListener
ants.core.PlaceListener
evt
- Hashtable event containing the received event.public void usersChanged(java.lang.String u)
ants.core.PlaceListener
usersChanged
in interface ants.core.PlaceListener
ants.core.PlaceListener
users
- Current users in that place.public void addThing(java.lang.String thingKey)
public void removeThing(java.lang.String thingKey)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |