OOP2

View.java

1
package be.uhasselt.oo2.mvc;
2
3
import java.util.Observable;
4
import java.util.Observer;
5
6
/**
7
 *
8
 * @author jvermeulen
9
 */
10
public interface View extends Observer {
11
      
12
    void setController(Controller controller);
13
    Controller getController();
14
    
15
    void setModel(Observable model);
16
    Observable getModel();
17
    
18
    Controller defaultController(Observable model);
19
}
20