Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

<<use>> Serializable Implements

Implements
<<use>>
<<entity>>
User
-userName : String <<control>> Main
-icon : ImageIcon ContactFileController
+main(String[]) : void Create & Contains
+getUserName() : String <<use>> -contactFileLocation : String
+setUserName(userName : String) : void +writeToFile(user : User) : void 1
Starts Create & Contain
+getIcon() : ImageIcon +readContactsFromFile() : ArrayList<User> 1 1 1 1 0..*
+setIcon(icon : ImageIcon) : void
1 <<control>> <<boundary>> <<entity>>
ClientController ClientConnection Message
1 Create & Contain -message : Message -socket : Socket -text : String
-user : User -Listener : ArrayList<IUserCallback> -image : ImageIcon
-contacts : ArrayList<User> +run() -sender : User
<<control>> 1 -client : ClientConnection +addCallback(cie : CallbackInterface) : void -reciver : User[]
Login +ClientController() +sendMesage(message : Message) : void -timeDeliverd : LocalTimeDate
Create 1 +loadContacts() : void -timeSent : LocalTimeDate
+Login()
1 Create & Contain 1 +closeConnection() : void +getText() : String
+userLogin() : User
+newUser() : void +setText(text : String) : void
<<Interface>> Extends +getImage() : ImageIcon
1
IUserCallback +setImage(image : ImageIcon) : void
1
+updateActiveContacts(contacts : ArrayList<User>) : void Create & Contain <<boundary>> +getSender() : User
Sends data Extends Thread
+updateMessages(message : Message) : void Reciver +setSender(sender : User) : void
Sends data
+run() +getReciver() : User[]
+setReciver(reciver : User[]) : void
1 1 +getTimeDeliverd() : LocalTimeDate
Implements <<boundary>> 1 +setTimeDeliverd(timeDeliverd : LocalTimeDate) : void
Sends data
MainFrame +getTimeSent() : LocalTimeDate
+updateActiveContacts(contacts : ArrayList<User>) : void 1 +setTimeSent(timeSent : LocalTimeDate) : void
+updateMessages(message : Message) : void
<<boundary>> 1 Create & Contain <<boundary>>
MainPanel 0..* CustomButton
<<Enum>>
ButtonTypes
MultiSelect <<use>>
Remove
Send
<<use>>

<<use>>

Powered ByVisual Paradigm Community Edition


<<use>>

You might also like