Subversion Repositories eFlore/Applications.coel

Rev

Rev 1513 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

package org.tela_botanica.client.composants.pagination;

import org.tela_botanica.client.Mediateur;
import org.tela_botanica.client.RegistreId;
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.synchronisation.Sequenceur;

import com.extjs.gxt.ui.client.Registry;
import com.extjs.gxt.ui.client.data.DataReader;
import com.extjs.gxt.ui.client.data.MemoryProxy;
import com.extjs.gxt.ui.client.data.ModelData;
import com.google.gwt.user.client.rpc.AsyncCallback;

public abstract class Proxy<D extends ModelData> extends MemoryProxy<D> implements Rafraichissable {

        protected Mediateur mediateur = (Mediateur) Registry.get(RegistreId.MEDIATEUR);
        
        protected DataReader<D> reader = null;
        protected Object loadConfig = null;
        protected AsyncCallback<D> callback = null;
        
        protected static Object data;
        
        protected Sequenceur sequenceur = null;
        
        public Proxy(Sequenceur sequenceur) {
                super(data);
                this.sequenceur = sequenceur;
        }

        public abstract void load(TransformateurJSONaModelData<D> reader, Object loadConfig, AsyncCallback<D> callback, String recherche);

        public abstract void rafraichir(Object nouvellesDonnees);
}