Biblioteca Java - Blame information for rev 3
Subversion Repositories:
Rev | Author | Line No. | Line |
---|---|---|---|
3 | mihai | 1 | /* |
2 | * To change this license header, choose License Headers in Project Properties. | ||
3 | * To change this template file, choose Tools | Templates | ||
4 | * and open the template in the editor. | ||
5 | */ | ||
6 | package designpatterns.mvc.senzor; | ||
7 | |||
8 | /** | ||
9 | * | ||
10 | * @author evo2 | ||
11 | */ | ||
12 | public class SenzorControlerMVC { | ||
13 | Senzor senzor; | ||
14 | SenzorView view; | ||
15 | |||
16 | SenzorControlerMVC(Senzor s, SenzorView v){ | ||
17 | this.senzor = s; | ||
18 | this.view = v; | ||
19 | this.senzor.addObserver(this.view); | ||
20 | view.setVisible(true); | ||
21 | } | ||
22 | } |