12345678910111213141516171819202122232425262728 |
- package chatprogramm.controller;
-
- import chatprogramm.view.ChatView;
- import java.util.Observable;
- import java.util.Observer;
-
- /**
- *
- * @author Marian
- */
- public class ReceiveAdapterController implements Observer
- {
- private ChatView view;
-
- public ReceiveAdapterController(ChatView view)
- {
- this.view = view;
- }
-
- @Override
- public void update(Observable observable, Object object)
- {
- String message = (String)object;
-
- view.getTaCommunication().append(message + "\n");
- }
-
- }
|