Index

A B C D E F G H I M N O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

addUserInfo(UserInfo) - Method in class thijzert.chatty.server.ChatServer
Stores userinfo of the newly connected client.
attachButton_ - Variable in class thijzert.chatty.client.gui.scene.MainScene
 
attachedFile_ - Variable in class thijzert.chatty.client.gui.scene.MainScene
 
attachGlyph_ - Variable in class thijzert.chatty.client.gui.scene.MainScene
 
AUTHOR - Static variable in class thijzert.chatty.data.Constants
The author of Chatty.

B

blockedUsers_ - Static variable in class thijzert.chatty.client.gui.scene.MainScene
 
broadcast(Message, UserThread) - Method in class thijzert.chatty.server.ChatServer
Delivers a message from one user to others (broadcasting).
BUILD_TIMESTAMP - Static variable in class thijzert.chatty.data.Constants
The build timestamp.
BUILD_TIMESTAMP_RESOURCE_NAME - Static variable in class thijzert.chatty.data.Constants
The resource name of the build timestamp.
BUILD_VERSION_RESOURCE_NAME - Static variable in class thijzert.chatty.data.Constants
The resource name of the build version.

C

caption_ - Variable in class thijzert.chatty.message.FileInfoMessage
 
caption_ - Variable in class thijzert.chatty.message.FileMessage
 
CARRIAGE_RETURN_SYMBOOL - Static variable in class thijzert.chatty.data.Constants
The symbool for a carriage return.
ChatClient - Interface in thijzert.chatty.client
Interface of a chatclient.
ChatClientGui - Class in thijzert.chatty.client.gui
Main class for the Chat Client Gui.
ChatClientGui() - Constructor for class thijzert.chatty.client.gui.ChatClientGui
 
chatClientGui_ - Static variable in class thijzert.chatty.data.Data
The ChatClientGui.
ChatClientGuiLauncher - Class in thijzert.chatty.client.gui
Launcher for ChatClientGui class.
ChatClientGuiLauncher() - Constructor for class thijzert.chatty.client.gui.ChatClientGuiLauncher
 
ChatClientLite - Class in thijzert.chatty.client
This is the chat client program for the commandline.
ChatClientLite(String, int) - Constructor for class thijzert.chatty.client.ChatClientLite
Initializes the client.
ChatMessage - Class in thijzert.chatty.message
This class is a message that can be sent over the chat.
ChatMessage(UserInfo) - Constructor for class thijzert.chatty.message.ChatMessage
This constructor initializes the message.
chatMessageIsBye(ChatMessage) - Method in class thijzert.chatty.server.UserThread
Checks if the chat message equals 'bye' (that means the client quits).
ChatServer - Class in thijzert.chatty.server
This is the chat server.
ChatServer(int) - Constructor for class thijzert.chatty.server.ChatServer
Initializes the server.
ChattyScene - Interface in thijzert.chatty.client.gui.scene
Interface of all used Scenes.
client_ - Variable in class thijzert.chatty.client.ReadThread
 
client_ - Variable in class thijzert.chatty.client.WriteThread
 
color_ - Variable in class thijzert.chatty.data.UserInfo
 
CONNECT_WINDOW_SIZE - Static variable in class thijzert.chatty.data.Constants
The size of the window of ChatClientGui when ConnectScene is active.
connectedUsers_ - Variable in class thijzert.chatty.message.ConnectedUsersMessage
 
connectedUsers_ - Variable in class thijzert.chatty.server.ChatServer
 
connectedUsersListView_ - Variable in class thijzert.chatty.client.gui.scene.MainScene
 
ConnectedUsersMessage - Class in thijzert.chatty.message
A message that contains a Set with all the connected usernames.
ConnectedUsersMessage(Set<UserInfo>) - Constructor for class thijzert.chatty.message.ConnectedUsersMessage
Initializes the message.
ConnectScene - Class in thijzert.chatty.client.gui.scene
In this scene you can connect to the server.
ConnectScene(WindowData) - Constructor for class thijzert.chatty.client.gui.scene.ConnectScene
Initializes the scene.
connectScene_ - Static variable in class thijzert.chatty.data.Data
The ConnectScene.
Constants - Class in thijzert.chatty.data
The most important constants of the program.
Constants() - Constructor for class thijzert.chatty.data.Constants
 

D

Data - Class in thijzert.chatty.data
Collection of the data of the program.
Data() - Constructor for class thijzert.chatty.data.Data
 
DEFAULT_BYTE_ARRAY_BUFFER_LENGTH - Static variable in class thijzert.chatty.data.Constants
 
DEFAULT_FONT_FAMILY - Static variable in class thijzert.chatty.data.Constants
The default JavaFX font family.
DEFAULT_FONT_SIZE - Static variable in class thijzert.chatty.data.Constants
The default JavaFX font size.
DEFAULT_WINDOW_SIZE - Static variable in class thijzert.chatty.data.Constants
The default size of the window of ChatClientGui.
downloadFile(FileInfoMessage, File) - Method in class thijzert.chatty.client.gui.scene.MainScene.MessageListCell
 

E

equals(Object) - Method in class thijzert.chatty.data.UserInfo
Checks if two users are the same.
equals(Object) - Method in class thijzert.chatty.message.FileInfoMessage
 
execute() - Method in class thijzert.chatty.client.ChatClientLite
Starts the client.
execute() - Method in class thijzert.chatty.server.ChatServer
This method starts the server.

F

file_ - Variable in class thijzert.chatty.message.FileMessage
 
FileContentRequestMessage - Class in thijzert.chatty.message
 
FileContentRequestMessage(UserInfo, FileInfoMessage) - Constructor for class thijzert.chatty.message.FileContentRequestMessage
 
fileInfo_ - Variable in class thijzert.chatty.message.FileMessage
 
FileInfoMessage - Class in thijzert.chatty.message
 
FileInfoMessage(UserInfo, String, FileType, long, String, int) - Constructor for class thijzert.chatty.message.FileInfoMessage
This constructor initializes the message.
FileMessage - Class in thijzert.chatty.message
 
FileMessage(UserInfo, File, FileType, String) - Constructor for class thijzert.chatty.message.FileMessage
This constructor initializes the message.
fileName_ - Variable in class thijzert.chatty.message.FileInfoMessage
 
filePartBytes_ - Variable in class thijzert.chatty.message.FilePartMessage
 
FilePartMessage - Class in thijzert.chatty.message
 
FilePartMessage(byte[]) - Constructor for class thijzert.chatty.message.FilePartMessage
 
fileSize_ - Variable in class thijzert.chatty.message.FileInfoMessage
 
FileType - Enum Class in thijzert.chatty.data
 
FileType() - Constructor for enum class thijzert.chatty.data.FileType
 
fileType_ - Variable in class thijzert.chatty.message.FileInfoMessage
 
fileType_ - Variable in class thijzert.chatty.message.FileMessage
 

G

getAction() - Method in class thijzert.chatty.message.UserActionMessage
Returns the action this message is about.
getBuildTimestamp() - Static method in class thijzert.chatty.data.Constants
Gets the build timestamp from the resources.
getCaption() - Method in class thijzert.chatty.message.FileInfoMessage
 
getColor() - Method in class thijzert.chatty.data.UserInfo
Returns the Color of the user.
getConnectedUsers() - Method in class thijzert.chatty.message.ConnectedUsersMessage
Returns all the connected users.
getConnectedUsers() - Method in class thijzert.chatty.server.ChatServer
Returns all connected usernames.
getFileInfo() - Method in class thijzert.chatty.message.FileMessage
 
getFileName() - Method in class thijzert.chatty.message.FileInfoMessage
 
getFilePartBytes() - Method in class thijzert.chatty.message.FilePartMessage
 
getFileSize() - Method in class thijzert.chatty.message.FileInfoMessage
 
getFileType() - Method in class thijzert.chatty.message.FileInfoMessage
 
getHeight() - Method in class thijzert.chatty.data.WindowData
Returns the height of the window.
getHostname() - Static method in class thijzert.chatty.data.Constants
Gets the hostname from InetAdress.
getId() - Method in class thijzert.chatty.message.FileInfoMessage
 
getMessage() - Method in class thijzert.chatty.message.InternalMessage
Returns the message.
getMessage() - Method in class thijzert.chatty.message.TextMessage
Returns the text message.
getName() - Method in class thijzert.chatty.data.UserInfo
Returns the name of the user.
getRequestedMessage() - Method in class thijzert.chatty.message.FileContentRequestMessage
 
getSender() - Method in class thijzert.chatty.message.ChatMessage
Returns the sender of the message.
getSocket() - Method in class thijzert.chatty.client.gui.scene.ConnectScene
Returns the connected socket.
getStage() - Method in class thijzert.chatty.data.WindowData
Returns the stage that belongs to the window.
getUser() - Method in class thijzert.chatty.message.UserActionMessage
Returns the user this message is about.
getUserInfo() - Method in interface thijzert.chatty.client.ChatClient
Returns the UserInfo.
getUserInfo() - Method in class thijzert.chatty.client.ChatClientLite
Returns the userinfo of the client.
getUserInfo() - Method in class thijzert.chatty.client.gui.ChatClientGui
Returns the UserInfo.
getVersion() - Static method in class thijzert.chatty.data.Constants
Gets the version from the resources.
getWidth() - Method in class thijzert.chatty.data.WindowData
Returns the width of the window.

H

height_ - Variable in class thijzert.chatty.data.WindowData
 
HOSTNAME - Static variable in class thijzert.chatty.data.Constants
The hostname of the machine Chatty is running on.
hostname_ - Variable in class thijzert.chatty.client.ChatClientLite
 

I

ICON_RESOURCE_NAME - Static variable in class thijzert.chatty.data.Constants
The resource name of the Chatty icon.
id_ - Variable in class thijzert.chatty.data.UserInfo
 
id_ - Variable in class thijzert.chatty.message.FileInfoMessage
 
IMAGE - Enum constant in enum class thijzert.chatty.data.FileType
 
InternalMessage - Class in thijzert.chatty.message
This message is used for internal feedback from (usually) a client.
InternalMessage(String) - Constructor for class thijzert.chatty.message.InternalMessage
Initializes the message.

M

main(String[]) - Static method in class thijzert.chatty.client.ChatClientLite
The main method of the chat client.
main(String[]) - Static method in class thijzert.chatty.client.gui.ChatClientGui
Main method for ChatClientGui.
main(String[]) - Static method in class thijzert.chatty.client.gui.ChatClientGuiLauncher
Main method of ChatClientGuiLauncher.
main(String[]) - Static method in class thijzert.chatty.server.ChatServer
Main method of ChatServer.
MainScene - Class in thijzert.chatty.client.gui.scene
The main scene of Chatty GUI (home scene).
MainScene(WindowData) - Constructor for class thijzert.chatty.client.gui.scene.MainScene
Initializes the class.
mainScene_ - Static variable in class thijzert.chatty.data.Data
The MainScene.
MainScene.MessageListCell - Class in thijzert.chatty.client.gui.scene
Handles a cell for a Message.
MainScene.UserInfoListCell - Class in thijzert.chatty.client.gui.scene
Handles a cell for a UserInfo.
MAX_FILE_MESSAGE_SIZE_FORMULA - Static variable in class thijzert.chatty.data.Constants
 
MAX_IMAGE_MESSAGE_SIZE_FORMULA - Static variable in class thijzert.chatty.data.Constants
 
MAX_NAME_LENGTH - Static variable in class thijzert.chatty.data.Constants
The maximum length of a name.
MAX_TEXT_MESSAGE_WIDTH_FORMULA - Static variable in class thijzert.chatty.data.Constants
Formula used to calculate the width of a message in MainScene.
Message - Interface in thijzert.chatty.message
An empty interface for all the messages for chatty.
message_ - Variable in class thijzert.chatty.message.InternalMessage
 
message_ - Variable in class thijzert.chatty.message.TextMessage
 
messageBorder_ - Static variable in class thijzert.chatty.client.gui.scene.MainScene
 
messageIsOfSelf(Message) - Method in class thijzert.chatty.client.gui.scene.MainScene.MessageListCell
Checks if a message is of the running client itself.
MessageListCell(WindowData) - Constructor for class thijzert.chatty.client.gui.scene.MainScene.MessageListCell
Initializes the cell.
MIN_WINDOW_SIZE_FORMULA - Static variable in class thijzert.chatty.data.Constants
Multiply x and y of DEFAULT_WINDOW_SIZE by this, then you'll get the minimal size of the window

N

name_ - Variable in class thijzert.chatty.data.UserInfo
 
next(WindowData) - Method in interface thijzert.chatty.client.gui.scene.ChattyScene
This method makes sure the current scene can safely switch to the next scene.
next(WindowData) - Method in class thijzert.chatty.client.gui.scene.ConnectScene
This method is implemented of ChattyScene.
next(WindowData) - Method in class thijzert.chatty.client.gui.scene.MainScene
This method is implemented of ChattyScene, but in this case it's empty.

O

objectInputStream_ - Static variable in class thijzert.chatty.data.Data
 
objectOutputStream_ - Variable in class thijzert.chatty.client.WriteThread
 
objectOutputStream_ - Static variable in class thijzert.chatty.data.Data
The ObjectOutputStream.
objectOutputStream_ - Variable in class thijzert.chatty.server.UserThread
 
OTHER - Enum constant in enum class thijzert.chatty.data.FileType
 

P

port_ - Variable in class thijzert.chatty.client.ChatClientLite
 
port_ - Variable in class thijzert.chatty.server.ChatServer
 
PROGRAM_NAME - Static variable in class thijzert.chatty.data.Constants
The name of the program.
ProgramFunctions - Class in thijzert.chatty.functions
This is a class of some important (basic) functions for the program.
ProgramFunctions() - Constructor for class thijzert.chatty.functions.ProgramFunctions
 

R

readObject(ObjectInputStream) - Method in class thijzert.chatty.message.FileMessage
 
ReadThread - Class in thijzert.chatty.client
This thread is responsible for reading server's input and printing it to the console.
ReadThread(Socket, ChatClient) - Constructor for class thijzert.chatty.client.ReadThread
This constructor initializes the read thread.
receiveMessage(Object) - Method in class thijzert.chatty.client.gui.scene.MainScene
Receives the messages from the server and handles it (by putting it on the screen for example).
receiveMessagesListView_ - Variable in class thijzert.chatty.client.gui.scene.MainScene
 
removeUser(UserInfo, UserThread) - Method in class thijzert.chatty.server.ChatServer
When a client is disconnected, removes the associated username and UserThread.
requestedMessage_ - Variable in class thijzert.chatty.message.FileContentRequestMessage
 
run() - Method in class thijzert.chatty.client.ReadThread
This function overrides the run method in Thread.
run() - Method in class thijzert.chatty.client.WriteThread
This function overrides the run method in Thread.
run() - Method in class thijzert.chatty.server.UserThread
This function overrides the run method in Thread.

S

scene_ - Variable in class thijzert.chatty.client.gui.scene.ConnectScene
 
scene_ - Variable in class thijzert.chatty.client.gui.scene.MainScene
 
sender_ - Variable in class thijzert.chatty.message.ChatMessage
 
sendMessage(String) - Method in class thijzert.chatty.client.gui.scene.MainScene
Sends a ChatMessage to the server.
sendMessage(Message) - Method in class thijzert.chatty.server.UserThread
Sends a message to the client.
sendMessageLabel_ - Variable in class thijzert.chatty.client.gui.scene.MainScene
 
sendMessageTextField_ - Variable in class thijzert.chatty.client.gui.scene.MainScene
 
serialVersionUID - Static variable in class thijzert.chatty.data.UserInfo
 
serialVersionUID - Static variable in class thijzert.chatty.message.ChatMessage
 
serialVersionUID - Static variable in class thijzert.chatty.message.ConnectedUsersMessage
 
serialVersionUID - Static variable in class thijzert.chatty.message.FileContentRequestMessage
 
serialVersionUID - Static variable in class thijzert.chatty.message.FileInfoMessage
 
serialVersionUID - Static variable in class thijzert.chatty.message.FileMessage
 
serialVersionUID - Static variable in class thijzert.chatty.message.FilePartMessage
 
serialVersionUID - Static variable in class thijzert.chatty.message.InternalMessage
 
serialVersionUID - Static variable in class thijzert.chatty.message.TextMessage
 
serialVersionUID - Static variable in class thijzert.chatty.message.UserActionMessage
 
server_ - Variable in class thijzert.chatty.server.UserThread
 
serverAddressTextField_ - Variable in class thijzert.chatty.client.gui.scene.ConnectScene
 
serverTempDir_ - Static variable in class thijzert.chatty.data.Data
 
setHeight(double) - Method in class thijzert.chatty.data.WindowData
Sets the height of the window.
setStage(Stage) - Method in class thijzert.chatty.data.WindowData
Sets the stage that belongs to the window.
setUserInfo(UserInfo) - Method in class thijzert.chatty.client.gui.ChatClientGui
Sets the UserInfo.
setWidth(double) - Method in class thijzert.chatty.data.WindowData
Sets the width of the window.
showAlert(Alert.AlertType, String) - Static method in class thijzert.chatty.functions.ProgramFunctions
Shows a default yet custom alert for Chatty.
showChatMessageNotification(ChatMessage) - Method in class thijzert.chatty.client.gui.scene.MainScene
Shows a TextMessage in the shape of a notification on the screen when the main Stage is not focused.
showThrowableAlert(Throwable) - Static method in class thijzert.chatty.functions.ProgramFunctions
Shows an error alert and the stacktrace of a Throwable.
socket_ - Variable in class thijzert.chatty.client.gui.scene.ConnectScene
 
socket_ - Variable in class thijzert.chatty.client.ReadThread
 
socket_ - Variable in class thijzert.chatty.client.WriteThread
 
socket_ - Variable in class thijzert.chatty.server.UserThread
 
SOCKET_TIMEOUT_MS - Static variable in class thijzert.chatty.data.Constants
The default timeout for a Socket.
stage_ - Variable in class thijzert.chatty.data.WindowData
 
start(Stage) - Method in class thijzert.chatty.client.gui.ChatClientGui
Overrides start method of Application.
start(WindowData) - Method in interface thijzert.chatty.client.gui.scene.ChattyScene
This method starts the scene.
start(WindowData) - Method in class thijzert.chatty.client.gui.scene.ConnectScene
This method switches to the home scene.
start(WindowData) - Method in class thijzert.chatty.client.gui.scene.MainScene
This method switches to the home scene.
startScene(ChattyScene, WindowData) - Static method in class thijzert.chatty.functions.ProgramFunctions
This method switches the scene to another.
SUPPORTED_IMAGE_EXTENSIONS - Static variable in class thijzert.chatty.data.Constants
 

T

TextMessage - Class in thijzert.chatty.message
This message is plain text.
TextMessage(UserInfo, String) - Constructor for class thijzert.chatty.message.TextMessage
This constructor initializes the text message.
thijzert.chatty.client - package thijzert.chatty.client
 
thijzert.chatty.client.gui - package thijzert.chatty.client.gui
 
thijzert.chatty.client.gui.scene - package thijzert.chatty.client.gui.scene
 
thijzert.chatty.data - package thijzert.chatty.data
 
thijzert.chatty.functions - package thijzert.chatty.functions
 
thijzert.chatty.message - package thijzert.chatty.message
 
thijzert.chatty.server - package thijzert.chatty.server
 
toString() - Method in class thijzert.chatty.data.UserInfo
Returns the name of the user.
toString() - Method in class thijzert.chatty.message.ConnectedUsersMessage
Returns a summary of the connected users in a fluent English sentence.
toString() - Method in class thijzert.chatty.message.UserActionMessage
Returns a summary of the UserActionMessage.

U

updateItem(UserInfo, boolean) - Method in class thijzert.chatty.client.gui.scene.MainScene.UserInfoListCell
Updates the cell.
updateItem(Message, boolean) - Method in class thijzert.chatty.client.gui.scene.MainScene.MessageListCell
Updates the cell.
user_ - Variable in class thijzert.chatty.message.UserActionMessage
 
USER_CONNECTED - Enum constant in enum class thijzert.chatty.message.UserActionMessage.UserAction
A user is connected.
USER_QUIT - Enum constant in enum class thijzert.chatty.message.UserActionMessage.UserAction
A user quit.
UserAction() - Constructor for enum class thijzert.chatty.message.UserActionMessage.UserAction
 
userAction_ - Variable in class thijzert.chatty.message.UserActionMessage
 
UserActionMessage - Class in thijzert.chatty.message
A server message that tells about an action a user did (connecting to the server or quitting).
UserActionMessage(UserInfo, UserActionMessage.UserAction) - Constructor for class thijzert.chatty.message.UserActionMessage
This constructor initializes the UserActionMessage.
UserActionMessage.UserAction - Enum Class in thijzert.chatty.message
The actions a user can do.
UserInfo - Class in thijzert.chatty.data
A collection of the info of a user.
UserInfo(String) - Constructor for class thijzert.chatty.data.UserInfo
Initializes the user info.
userInfo_ - Variable in class thijzert.chatty.client.ChatClientLite
 
userInfo_ - Variable in class thijzert.chatty.client.gui.ChatClientGui
 
UserInfoListCell() - Constructor for class thijzert.chatty.client.gui.scene.MainScene.UserInfoListCell
 
UserThread - Class in thijzert.chatty.server
This thread handles connection for each connected client, so the server can handle multiple clients at the same time.
UserThread(Socket, ChatServer) - Constructor for class thijzert.chatty.server.UserThread
Initializes the thread.
userThreads_ - Variable in class thijzert.chatty.server.ChatServer
 

V

valueOf(String) - Static method in enum class thijzert.chatty.data.FileType
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class thijzert.chatty.message.UserActionMessage.UserAction
Returns the enum constant of this class with the specified name.
values() - Static method in enum class thijzert.chatty.data.FileType
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class thijzert.chatty.message.UserActionMessage.UserAction
Returns an array containing the constants of this enum class, in the order they are declared.
VERSION - Static variable in class thijzert.chatty.data.Constants
The version of Chatty.

W

width_ - Variable in class thijzert.chatty.data.WindowData
 
WindowData - Class in thijzert.chatty.data
A collection of the data of a window.
WindowData(Stage, double, double) - Constructor for class thijzert.chatty.data.WindowData
Initializes the window data.
windowData_ - Variable in class thijzert.chatty.client.gui.scene.MainScene.MessageListCell
 
windowData_ - Variable in class thijzert.chatty.client.gui.scene.MainScene
 
windowData_ - Static variable in class thijzert.chatty.data.Data
The WindowData of a window.
writeObject(ObjectOutputStream) - Method in class thijzert.chatty.message.FileMessage
 
WriteThread - Class in thijzert.chatty.client
This thread is responsible for reading user's input and send it to the server.
WriteThread(Socket, ChatClientLite) - Constructor for class thijzert.chatty.client.WriteThread
This constructor initializes the write thread.
A B C D E F G H I M N O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form