6,7 → 6,7 |
public class Requete implements Rafraichissable{ |
|
private Rafraichissable vueARafraichir; |
private Object retour; |
private Reponse reponse; |
private int numeroSequence; |
|
public Requete(Rafraichissable vueARafraichir, int numeroSequence) { |
18,16 → 18,16 |
return this.vueARafraichir; |
} |
|
public boolean aRetour() { |
return (retour!=null); |
public boolean hasResponse() { |
return (reponse!=null); |
} |
|
public void setRetour(Reponse reponse) { |
this.retour = reponse.obtenirRetour(); |
this.reponse = reponse; |
} |
|
public Object obtenirRetour() { |
return this.retour; |
public Reponse obtenirReponse() { |
return this.reponse; |
} |
|
public int obtenirNumeroSequence() { |
35,11 → 35,11 |
} |
|
public void rafraichir() { |
rafraichir(null); |
vueARafraichir.rafraichir(reponse.obtenirRetour()); |
} |
|
public void rafraichir(Object nouvellesDonnees) { |
vueARafraichir.rafraichir(retour); |
vueARafraichir.rafraichir(nouvellesDonnees); |
} |
|
public String toString() { |