You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ChatController.java 1016B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6. package netz.controller;
  7. import java.awt.event.ActionEvent;
  8. import java.awt.event.ActionListener;
  9. import java.util.logging.Logger;
  10. import netz.model.ChatModel;
  11. import netz.view2.ChatView;
  12. import ohmlogger.OhmLogger;
  13. /**
  14. *
  15. * @author chris
  16. */
  17. public class ChatController implements ActionListener
  18. {
  19. private ChatView view;
  20. private ChatModel model;
  21. private static Logger lg = OhmLogger.getLogger();
  22. /**
  23. *
  24. * @param view
  25. * @param model
  26. */
  27. public ChatController(ChatView view, ChatModel model)
  28. {
  29. this.view = view;
  30. this.model = model;
  31. }
  32. public void registerEvents()
  33. {
  34. view.getBtnSend().addActionListener(this);
  35. }
  36. @Override
  37. public void actionPerformed(ActionEvent e)
  38. {
  39. }
  40. public void upddateStatus(String status)
  41. {
  42. view.getLblStatusDialog().setText(status);
  43. }
  44. }