From 4edcc9264991316935641e418c1b017cfc88e94b Mon Sep 17 00:00:00 2001 From: Leonardo Brandenberger Date: Sat, 16 Apr 2022 04:54:56 +0200 Subject: [PATCH] improved java doc in ChatWindowController and Client class finished --- .../client/ChatWindowController.java | 3 +- .../pm2/multichat/client/ChatWindowModel.java | 29 ------------------- .../ch/zhaw/pm2/multichat/client/Client.java | 8 +++++ 3 files changed, 10 insertions(+), 30 deletions(-) delete mode 100644 client/src/main/java/ch/zhaw/pm2/multichat/client/ChatWindowModel.java diff --git a/client/src/main/java/ch/zhaw/pm2/multichat/client/ChatWindowController.java b/client/src/main/java/ch/zhaw/pm2/multichat/client/ChatWindowController.java index 4aaf238..8ee37fc 100644 --- a/client/src/main/java/ch/zhaw/pm2/multichat/client/ChatWindowController.java +++ b/client/src/main/java/ch/zhaw/pm2/multichat/client/ChatWindowController.java @@ -242,7 +242,8 @@ public class ChatWindowController { */ class WindowCloseHandler implements EventHandler { /** - * TODO + * TODO + * * @param event the event which occurred */ public void handle(WindowEvent event) { diff --git a/client/src/main/java/ch/zhaw/pm2/multichat/client/ChatWindowModel.java b/client/src/main/java/ch/zhaw/pm2/multichat/client/ChatWindowModel.java deleted file mode 100644 index 261283f..0000000 --- a/client/src/main/java/ch/zhaw/pm2/multichat/client/ChatWindowModel.java +++ /dev/null @@ -1,29 +0,0 @@ -package ch.zhaw.pm2.multichat.client; - -import javafx.beans.value.ObservableStringValue; - -public class ChatWindowModel { - private ClientConnectionHandler connectionHandler; - private ClientMessageList messages; - ObservableStringValue serverAddress; - ObservableStringValue serverPort; - - - public String getServerAddress() { - return serverAddress.get(); - } - - public void setServerAddress(String address) { - setServerAddress(address); - } - - public String getServerPort() { - return getServerPort(); - } - - public void setServerPort(String address) { - setServerPort(address); - } - - -} diff --git a/client/src/main/java/ch/zhaw/pm2/multichat/client/Client.java b/client/src/main/java/ch/zhaw/pm2/multichat/client/Client.java index 38caafc..fe2f9cc 100644 --- a/client/src/main/java/ch/zhaw/pm2/multichat/client/Client.java +++ b/client/src/main/java/ch/zhaw/pm2/multichat/client/Client.java @@ -2,8 +2,16 @@ package ch.zhaw.pm2.multichat.client; import javafx.application.Application; +/** + * Client Main Class in charge of starting the UI only contains main method. + */ public class Client { + /** + * Main method which launches the Client UI + * + * @param args no arguments needed + */ public static void main(String[] args) { // Start UI System.out.println("Starting Client Application");