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.

CommandLoescheDaten.java 740B

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 controller.CommandInterface;
  8. import model.AdressverwaltungModel;
  9. import view.Adressverwaltung;
  10. /**
  11. *
  12. * @author nobody
  13. */
  14. public class CommandLoescheDaten implements CommandInterface
  15. {
  16. private Adressverwaltung view;
  17. private AdressverwaltungModel model;
  18. public CommandLoescheDaten(Adressverwaltung view, AdressverwaltungModel model)
  19. {
  20. this.view = view;
  21. this.model = model;
  22. }
  23. @Override
  24. public void execute()
  25. {
  26. model.eintragLoeschen(0);
  27. }
  28. @Override
  29. public void undo()
  30. {
  31. }
  32. }