Skip navigation links
A C E G K L M O Q R S T 

A

addBuddy(MsgUser) - Method in class MsgUser
If myWindow is initialized, adds u to its set of buddies by calling myWindow.addBuddy(u).
addBuddy(MsgUser) - Method in class MsgWindow
Adds a buddy to this user's list of buddies.
addUser(String, String) - Method in interface Login
Tries to register a new user with a given screen name and password;
addUser(String, String) - Method in class Server
Tries to register a new user with a given screen name and password.

C

compareTo(MsgUser) - Method in class MsgUser
Compares this user to another by comparing their screen names case blind.

E

equals(Object) - Method in class MsgUser
Indicates whether some other user is "equal to" this one, based on comparing their screen names case blind.

G

getName() - Method in class MsgUser
Returns the screen name for this user.
getPassword() - Method in class MsgUser
Returns the password for this user.

K

keyPressed(KeyEvent) - Method in class MsgWindow
 
keyReleased(KeyEvent) - Method in class MsgWindow
Processes the Enter key event on this window.
keyTyped(KeyEvent) - Method in class MsgWindow
 

L

Login - Interface in <Unnamed>
Specifies methods for registering and logging in users.
login(String, String) - Method in interface Login
Tries to login a user with a given screen name and password;
login(String, String) - Method in class Server
Tries to login a user with a given screen name and password.
LoginWindow - Class in <Unnamed>
Provides GUI for registering and logging in subscribers.
LoginWindow(String, Login) - Constructor for class LoginWindow
Constructs a new login window.
logout(MsgUser) - Method in class Server
Removes a given user u from the set of all logged-in users.

M

main(String[]) - Static method in class Messenger
 
Messenger - Class in <Unnamed>
The main class for the Java Messenger application.
Messenger() - Constructor for class Messenger
 
MsgUser - Class in <Unnamed>
Represents a Java Messenger user.
MsgUser(Server, String, String) - Constructor for class MsgUser
Constructs a new user with a given screen name and password.
MsgWindow - Class in <Unnamed>
Provides a GUI front end for a logged-in user.
MsgWindow(MsgUser, Set<MsgUser>) - Constructor for class MsgWindow
Constructs a new window for a given user.

O

openDialog(Set<MsgUser>) - Method in class MsgUser
Creates a new MsgWindow for this user and saves a reference to it in myWindow.

Q

quit() - Method in class MsgUser
Logs out this user by calling server.logout(this).

R

receiveMessage(String) - Method in class MsgUser
If myWindow is initialized, shows the received message by calling myWindow.showMessage(text).
removeBuddy(MsgUser) - Method in class MsgUser
If myWindow is initialized, removes u from its set of buddies by calling myWindow.removeBuddy(u).
removeBuddy(MsgUser) - Method in class MsgWindow
Removes a buddy from this user's list of buddies.

S

Server - Class in <Unnamed>
Represents a Java Messenger server.
Server() - Constructor for class Server
Constructs a new server.
showMessage(String) - Method in class MsgWindow
Displays a message on this window.

T

toString() - Method in class MsgUser
Returns this user's screenName.
A C E G K L M O Q R S T 
Skip navigation links