|
||||||||||
| 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 thrown| Method 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 ChatListenermsg - String to be displayedexceptions - No exceptions thrownpublic void userJoined(java.lang.String u)
ants.core.PlaceListeneruserJoined in interface ants.core.PlaceListenerants.core.PlaceListeneruserName - New user`s namepublic void userLeft(java.lang.String u)
ants.core.PlaceListeneruserLeft in interface ants.core.PlaceListenerants.core.PlaceListeneruserName - Name of leaving user.public void onMessage(java.util.Hashtable ht)
ants.core.PlaceListeneronMessage in interface ants.core.PlaceListenerants.core.PlaceListenerevt - Hashtable event containing the received event.public void usersChanged(java.lang.String u)
ants.core.PlaceListenerusersChanged in interface ants.core.PlaceListenerants.core.PlaceListenerusers - 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 | |||||||||