1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package command.commands;
-
- import command.CommandInterface;
- import model.AdressVerwaltungModel;
- import view.MainWindow;
-
- /**
- *
- * @author PC
- */
- public class CommandEintragHinzufuegen implements CommandInterface{
-
- private MainWindow view;
- private AdressVerwaltungModel model;
-
-
- public CommandEintragHinzufuegen(MainWindow view, AdressVerwaltungModel model)
- {
- this.view = view;
- this.model = model;
-
- }
-
- @Override
- public void execute() {
- this.model.eintragHinzufuegen();
- }
-
- @Override
- public void undo() {
-
- }
-
- @Override
- public boolean isUndoable() {
- return true;
- }
-
- }
|