Klassen angelegt für Controll Aufgaben
This commit is contained in:
parent
490f1d2cbb
commit
1764cd9f75
26
src/chatprogramm/controller/ConnectController.java
Normal file
26
src/chatprogramm/controller/ConnectController.java
Normal file
@ -0,0 +1,26 @@
|
||||
/*
|
||||
* To change this license header, choose License Headers in Project Properties.
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
|
||||
package chatprogramm.controller;
|
||||
|
||||
import chatprogramm.model.Transmitter;
|
||||
import chatprogramm.view.ChatView;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Gerhard
|
||||
*/
|
||||
public class ConnectController
|
||||
{
|
||||
private ChatView view;
|
||||
private Transmitter model;
|
||||
|
||||
public ConnectController(ChatView view, Transmitter model)
|
||||
{
|
||||
this.view = view;
|
||||
this.model = model;
|
||||
}
|
||||
}
|
33
src/chatprogramm/controller/ReceiveAdapterController.java
Normal file
33
src/chatprogramm/controller/ReceiveAdapterController.java
Normal file
@ -0,0 +1,33 @@
|
||||
/*
|
||||
* To change this license header, choose License Headers in Project Properties.
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
|
||||
package chatprogramm.controller;
|
||||
|
||||
import chatprogramm.model.Transmitter;
|
||||
import chatprogramm.view.ChatView;
|
||||
import java.util.Observable;
|
||||
import java.util.Observer;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Gerhard
|
||||
*/
|
||||
public class ReceiveAdapterController implements Observer
|
||||
{
|
||||
private ChatView view;
|
||||
private Transmitter model;
|
||||
|
||||
public ReceiveAdapterController(ChatView view, Transmitter model)
|
||||
{
|
||||
this.view = view;
|
||||
this.model = model;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void update(Observable o, Object arg)
|
||||
{
|
||||
}
|
||||
}
|
26
src/chatprogramm/controller/SendController.java
Normal file
26
src/chatprogramm/controller/SendController.java
Normal file
@ -0,0 +1,26 @@
|
||||
/*
|
||||
* To change this license header, choose License Headers in Project Properties.
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
|
||||
package chatprogramm.controller;
|
||||
|
||||
import chatprogramm.model.Transmitter;
|
||||
import chatprogramm.view.ChatView;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Gerhard
|
||||
*/
|
||||
public class SendController
|
||||
{
|
||||
private ChatView view;
|
||||
private Transmitter model;
|
||||
|
||||
public SendController(ChatView view, Transmitter model)
|
||||
{
|
||||
this.view = view;
|
||||
this.model = model;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user