Klassen angelegt für Controll Aufgaben

This commit is contained in:
Gerhard Switalski 2018-12-15 11:44:53 +01:00
parent 490f1d2cbb
commit 1764cd9f75
3 changed files with 85 additions and 0 deletions

View 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;
}
}

View 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)
{
}
}

View 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;
}
}