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