Skip to content
Snippets Groups Projects
Commit 4266839c authored by Thibault Croisier's avatar Thibault Croisier
Browse files

TO COMPLETE

parent 635a5faa
No related branches found
No related tags found
No related merge requests found
......@@ -6,13 +6,13 @@ import fr.univlille.iut.r304.tp3.q1.Observer;
public class ConnectableProperty extends ObservableProperty implements Observer{
public void connectTo(ConnectableProperty other) {
this.attach(other);
other.attach(this);
this.setValue(other.getValue());
}
public void biconnectTo(ConnectableProperty other) {
this.connectTo(other);
other.attach(this);
other.connectTo(this);
}
public void unconnectFrom(ConnectableProperty other) {
......@@ -25,7 +25,7 @@ public class ConnectableProperty extends ObservableProperty implements Observer{
@Override
public void update(Observable subj, Object data) {
this.property = data;
this.setValue(data);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment