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.

CommandAddRow.java 741B

1234567891011121314151617181920212223242526272829303132333435363738
  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 model.AdressverwaltungModel;
  8. import controller.Interface;
  9. import prfourgui.View.AdressbuchView;
  10. /**
  11. *
  12. * @author jechowma68968
  13. */
  14. public class CommandAddRow implements Interface
  15. {
  16. private final AdressbuchView view;
  17. private final AdressverwaltungModel model;
  18. public CommandAddRow(AdressbuchView view, AdressverwaltungModel model)
  19. {
  20. this.view = view;
  21. this.model = model;
  22. }
  23. @Override
  24. public void execute()
  25. {
  26. model.eintragHinzufuegen();
  27. }
  28. @Override
  29. public void undo()
  30. {
  31. }
  32. }