Commit 1ff3f8ac authored by Sebastian Pretscher's avatar Sebastian Pretscher

Added skeletons for MVC

parent 0179c272
package de.tum.in.www2.cupplugin.controller;
public class Controller {
// Static reference to the controller
static Controller instance;
/*
* Static singelton getter
*/
static Controller getInstance() {
if (instance != null) {
return instance;
} else {
instance = new Controller();
return instance;
}
}
public Controller() {
}
}
package de.tum.in.www2.cupplugin.model;
public class Model {
// Static reference to the controller
static Model instance;
/*
* Static singelton getter
*/
static Model getInstance() {
if (instance != null) {
return instance;
} else {
instance = new Model();
return instance;
}
}
public Model() {
}
}
package de.tum.in.www2.cupplugin.model;
public interface ModelObserverInterface {
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment