Subversion Repositories eFlore/Applications.coel

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1287 cyprien 1
package org.tela_botanica.client.composants.pagination;
2
 
3
import org.tela_botanica.client.Mediateur;
4
import org.tela_botanica.client.RegistreId;
5
import org.tela_botanica.client.interfaces.Rafraichissable;
1367 cyprien 6
import org.tela_botanica.client.synchronisation.Sequenceur;
1287 cyprien 7
 
8
import com.extjs.gxt.ui.client.Registry;
9
import com.extjs.gxt.ui.client.data.DataReader;
10
import com.extjs.gxt.ui.client.data.MemoryProxy;
1468 jpm 11
import com.extjs.gxt.ui.client.data.ModelData;
1287 cyprien 12
import com.google.gwt.user.client.rpc.AsyncCallback;
13
 
1468 jpm 14
public abstract class Proxy<D extends ModelData> extends MemoryProxy<D> implements Rafraichissable {
1287 cyprien 15
 
16
	protected Mediateur mediateur = (Mediateur) Registry.get(RegistreId.MEDIATEUR);
17
 
18
	protected DataReader<D> reader = null;
19
	protected Object loadConfig = null;
20
	protected AsyncCallback<D> callback = null;
21
 
22
	protected static Object data;
23
 
1367 cyprien 24
	protected Sequenceur sequenceur = null;
25
 
26
	public Proxy(Sequenceur sequenceur) {
1287 cyprien 27
		super(data);
1367 cyprien 28
		this.sequenceur = sequenceur;
1287 cyprien 29
	}
30
 
31
	public abstract void load(TransformateurJSONaModelData<D> reader, Object loadConfig, AsyncCallback<D> callback, String recherche);
32
 
1428 cyprien 33
	public abstract void rafraichir(Object nouvellesDonnees);
1526 jpm 34
}