Definition at line 9 of file Controller.java.
◆ Controller()
Controller.Controller |
( |
View | view | ) |
|
|
inline |
◆ start()
void Controller.start |
( |
| ) |
|
|
inline |
Definition at line 23 of file Controller.java.
23 {
24 try {
25 this.socket = new Socket("127.0.0.1", 58901);
26 this.in =
new Scanner(
socket.getInputStream());
27 this.out =
new PrintWriter(
socket.getOutputStream(),
true);
28 } catch (UnknownHostException e) {
29 e.printStackTrace();
30 } catch (IOException e) {
31 e.printStackTrace();
32 }
33
35 public void actionPerformed(ActionEvent actionEvent) {
37 System.out.println("Client Sent: UP");
38 }
39 };
41
43 public void actionPerformed(ActionEvent actionEvent) {
45 System.out.println("Client Sent: DOWN");
46 }
47 };
49
50
52 handler.start();
53 }
ActionListener downButtonListener
ActionListener upButtonListener
References downButtonListener, View.getDownButton(), View.getUpButton(), out, socket, upButtonListener, and view.
Referenced by T8Client.main().
◆ downButtonListener
ActionListener Controller.downButtonListener |
|
private |
◆ in
◆ out
PrintWriter Controller.out |
|
private |
◆ socket
◆ upButtonListener
ActionListener Controller.upButtonListener |
|
private |
◆ view
The documentation for this class was generated from the following file: