Subversion Repositories eFlore/Applications.coel

Rev

Rev 1320 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1320 Rev 1367
Line 4... Line 4...
4
import org.tela_botanica.client.synchronisation.Reponse;
4
import org.tela_botanica.client.synchronisation.Reponse;
Line 5... Line 5...
5
 
5
 
Line 6... Line 6...
6
public class Requete implements Rafraichissable{
6
public class Requete implements Rafraichissable{
7
	
7
	
8
	private Rafraichissable vueARafraichir;
8
	private Rafraichissable vueARafraichir;
Line 9... Line 9...
9
	private Object retour;
9
	private Reponse reponse;
10
	private int numeroSequence;
10
	private int numeroSequence;
11
	
11
	
Line 16... Line 16...
16
	
16
	
17
	public Rafraichissable getVueARafraichir()	{
17
	public Rafraichissable getVueARafraichir()	{
18
		return this.vueARafraichir;
18
		return this.vueARafraichir;
Line 19... Line 19...
19
	}
19
	}
20
	
20
	
21
	public boolean aRetour()	{
21
	public boolean hasResponse()	{
Line 22... Line 22...
22
		return (retour!=null);
22
		return (reponse!=null);
23
	}
23
	}
24
	
24
	
Line 25... Line 25...
25
	public void setRetour(Reponse reponse)	{
25
	public void setRetour(Reponse reponse)	{
26
		this.retour = reponse.obtenirRetour();
26
		this.reponse = reponse;
27
	}
27
	}
Line 28... Line 28...
28
	
28
	
29
	public Object obtenirRetour()	{
29
	public Reponse obtenirReponse()	{
30
		return this.retour;
30
		return this.reponse;
Line 31... Line 31...
31
	}
31
	}
32
	
32
	
33
	public int obtenirNumeroSequence()	{
33
	public int obtenirNumeroSequence()	{
Line 34... Line 34...
34
		return numeroSequence;
34
		return numeroSequence;
35
	}
35
	}
36
	
36
	
Line 37... Line 37...
37
	public void rafraichir()	{
37
	public void rafraichir()	{
38
		rafraichir(null);
38
		vueARafraichir.rafraichir(reponse.obtenirRetour());
39
	}
39
	}