1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- /*
- * 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 gui_adressverwaltung.Controller;
-
- import gui_adressverwaltung.Controller.Interface.CommandInterface;
- import gui_adressverwaltung.model.AdressverwaltungModel;
- import gui_adressverwaltung.view.Hauptfenster;
-
- /**
- *
- * @author nobody
- */
- public class DatenHinzufuegen implements CommandInterface
- {
- private AdressverwaltungModel model;
- private Hauptfenster view;
-
-
- public DatenHinzufuegen(AdressverwaltungModel model, Hauptfenster view)
- {
- this.model = model;
- this.view = view;
- }
-
- /**
- * Fühhrt den Befehl aus
- */
-
- @Override
- public void execute()
- {
- view.getLblStatus().setText("Zeile hinzugefügt");
- model.eintragHinzufuegen();
- }
-
- @Override
- public void undo()
- {
- }
-
- @Override
- public boolean isUndoable()
- {
- return false;
- }
- }
|