improved java doc in ChatWindowController and Client class finished
This commit is contained in:
parent
dcee52cc1b
commit
4edcc92649
|
@ -243,6 +243,7 @@ public class ChatWindowController {
|
|||
class WindowCloseHandler implements EventHandler<WindowEvent> {
|
||||
/**
|
||||
* TODO
|
||||
*
|
||||
* @param event the event which occurred
|
||||
*/
|
||||
public void handle(WindowEvent event) {
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue