|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--HooChat.HooMessenger
This class encapsulates the methods and members necessary to create a messenger object. In this class you create a buddyList, messageFrame (IM window) and login screen. Also, this class holds references, which it feeds to its local objects, to the appropriate listener callback obj., listener and message server.
| Constructor Summary | |
HooMessenger(MessageServer m,
HydraClient hRef)
Creates a new instance of GraphicsModule CRock: Added a fun filled extra thread to replace that crap that Hooman was running for Timers and Tasks.... |
|
| Method Summary | |
void |
activateBeamer()
This method shows the beamer object |
void |
addToMessageBuf(String msg)
Add another message received to the buffer holding all the messages |
void |
beam(String destination)
This method beams the client to the selected destination using the hydraClient |
Vector |
getBuddyVec()
This method gets the most recent list of clients using the server from the message server |
String |
getUsername()
This method returns the username of the person using the client program |
void |
init()
This method initializes the visibility of all our friendly graphics, specifically the Beamer, BuddyList, MessageFrame (i.e. |
void |
login(String u,
String p)
This method lets the client login with a username,password pair. |
void |
logOff()
This method lets the client logOff with a (username,password) pair. |
void |
run()
This run thread will do ALL of that polling crap we need to have done for the chat client (all the stuff in checkIn is now here.... |
void |
send(String msg)
This method sends a message to everyone in the chatroom |
void |
setState(Vector stateVec)
This method sets all the state in the program from the given vector |
void |
suspend()
This method puts the program into suspend mode. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HooMessenger(MessageServer m,
HydraClient hRef)
| Method Detail |
public void init()
public void setState(Vector stateVec)
stateVec - the vector containing all the state information required to wake
a sleepy messenger. The vector is in the following format:
0: vector containing the messageFrame
1: vector containing the username
2: vector containing the password
public void login(String u,
String p)
public void logOff()
public Vector getBuddyVec()
public void addToMessageBuf(String msg)
msg - the message that to add to the buffer
public void activateBeamer()
public void beam(String destination)
destination - the name of the client you are sending to
public void suspend()
public String getUsername()
public void send(String msg)
public void run()
run in interface Runnable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||