/* * 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; } }