public class MainWindowFrame extends AbstractFrame { /** * Konstruktor * */ public void MainWindowFrame() { super(); } /** * Implementace abstraktní metody pro registraci Pohledů * */ @Override protected void regViews() { // Pohled Tabulky na celý model views.put(TableView.class, new TableView(this)); // Detailní pohled na jeden prvek views.put(DetailView.class, new DetailView(this)); } /** * Implememtace abstraktní metody pro registraci Controllerů. * */ @Override protected void regControllers() { // controller Pohledu tabulky controllers.put(TableController.class, new TableController(this)); // controller Pohledu detailu položky controllers.put(DetailController.class, new DetailController(this)); } }