Subversion Repositories eFlore/Applications.coel

Rev

Rev 1513 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1513 Rev 1624
Line 19... Line 19...
19
import com.extjs.gxt.ui.client.data.DataReader;
19
import com.extjs.gxt.ui.client.data.DataReader;
20
import com.extjs.gxt.ui.client.data.MemoryProxy;
20
import com.extjs.gxt.ui.client.data.MemoryProxy;
21
import com.extjs.gxt.ui.client.data.ModelData;
21
import com.extjs.gxt.ui.client.data.ModelData;
22
import com.google.gwt.json.client.JSONObject;
22
import com.google.gwt.json.client.JSONObject;
23
import com.google.gwt.json.client.JSONString;
23
import com.google.gwt.json.client.JSONString;
-
 
24
import com.google.gwt.user.client.Window;
24
import com.google.gwt.user.client.rpc.AsyncCallback;
25
import com.google.gwt.user.client.rpc.AsyncCallback;
Line 25... Line 26...
25
 
26
 
Line 26... Line 27...
26
public class ProxyCollectionAPublication<D> extends Proxy {
27
public class ProxyCollectionAPublication<D> extends Proxy {
Line 32... Line 33...
32
		
33
		
33
		this.collectionId = collectionId;
34
		this.collectionId = collectionId;
Line 34... Line 35...
34
	}
35
	}
35
	
36
	
36
	@Override
37
	@Override
37
	  public void load(TransformateurJSONaModelData reader, Object loadConfig, AsyncCallback callback, String recherche) {
38
	public void load(TransformateurJSONaModelData reader, Object loadConfig, AsyncCallback callback, String recherche) {
38
			this.reader = reader;
39
		this.reader = reader;
Line 39... Line 40...
39
			this.callback = callback;
40
		this.callback = callback;
40
			this.loadConfig = loadConfig;
-
 
41
 
41
		this.loadConfig = loadConfig;
42
			BasePagingLoadConfig lc = (BasePagingLoadConfig)loadConfig;		  
42
 
-
 
43
		BasePagingLoadConfig lc = (BasePagingLoadConfig)loadConfig;		  
-
 
44
		if (this.collectionId != null && !UtilString.isEmpty(this.collectionId))	{
43
		
45
			mediateur.selectionnerCollectionAPublication(this, this.collectionId, recherche, lc.getOffset(), lc.getLimit(), sequenceur);
44
		if (!UtilString.isEmpty(this.collectionId))	{
46
		} else {
Line 45... Line 47...
45
			mediateur.selectionnerCollectionAPublication(this, this.collectionId, recherche, lc.getOffset(), lc.getLimit(), sequenceur);
47
			  this.rafraichir(null);
46
		}
48
		}
47
	  }
49
	}