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.

CommandAnnehmen.java 987B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 controller.commands;
  7. import controller.CommandInterface;
  8. import gui.Hauptfenster;
  9. import java.util.logging.Logger;
  10. import logger.OhmLogger;
  11. import model.VoIP;
  12. /**
  13. *
  14. * @author Jan
  15. * Anruf annehmen -> Evt muss noch gelöscht werden falls nichtmehr angerufen wird,
  16. * welches Kriterium???
  17. */
  18. public class CommandAnnehmen implements CommandInterface
  19. {
  20. private static final Logger lginvite = OhmLogger.getLogger();
  21. private VoIP model;
  22. private Hauptfenster view;
  23. public CommandAnnehmen(VoIP model, Hauptfenster view)
  24. {
  25. this.model = model;
  26. this.view = view;
  27. }
  28. @Override
  29. public void execute()
  30. {
  31. {
  32. model.annehmen();
  33. }
  34. }
  35. @Override
  36. public void undo()
  37. {
  38. }
  39. @Override
  40. public Boolean isundoable()
  41. {
  42. return false;
  43. }
  44. }