Line 9... |
Line 9... |
9 |
import org.tela_botanica.client.interfaces.Rafraichissable;
|
9 |
import org.tela_botanica.client.interfaces.Rafraichissable;
|
10 |
import org.tela_botanica.client.modeles.ValeurListe;
|
10 |
import org.tela_botanica.client.modeles.ValeurListe;
|
11 |
import org.tela_botanica.client.modeles.ValeurListeAsyncDao;
|
11 |
import org.tela_botanica.client.modeles.ValeurListeAsyncDao;
|
12 |
import org.tela_botanica.client.synchronisation.Sequenceur;
|
12 |
import org.tela_botanica.client.synchronisation.Sequenceur;
|
13 |
import org.tela_botanica.client.util.Debug;
|
13 |
import org.tela_botanica.client.util.Debug;
|
- |
|
14 |
import org.tela_botanica.client.util.UtilString;
|
Line 14... |
Line 15... |
14 |
|
15 |
|
15 |
import com.extjs.gxt.ui.client.Registry;
|
16 |
import com.extjs.gxt.ui.client.Registry;
|
16 |
import com.extjs.gxt.ui.client.data.BasePagingLoadConfig;
|
17 |
import com.extjs.gxt.ui.client.data.BasePagingLoadConfig;
|
17 |
import com.extjs.gxt.ui.client.data.BasePagingLoadResult;
|
18 |
import com.extjs.gxt.ui.client.data.BasePagingLoadResult;
|
18 |
import com.extjs.gxt.ui.client.data.DataReader;
|
19 |
import com.extjs.gxt.ui.client.data.DataReader;
|
19 |
import com.extjs.gxt.ui.client.data.MemoryProxy;
|
20 |
import com.extjs.gxt.ui.client.data.MemoryProxy;
|
20 |
import com.extjs.gxt.ui.client.data.ModelData;
|
21 |
import com.extjs.gxt.ui.client.data.ModelData;
|
21 |
import com.google.gwt.json.client.JSONObject;
|
22 |
import com.google.gwt.json.client.JSONObject;
|
- |
|
23 |
import com.google.gwt.json.client.JSONString;
|
22 |
import com.google.gwt.json.client.JSONString;
|
24 |
import com.google.gwt.user.client.Window;
|
Line 23... |
Line 25... |
23 |
import com.google.gwt.user.client.rpc.AsyncCallback;
|
25 |
import com.google.gwt.user.client.rpc.AsyncCallback;
|
Line 24... |
Line 26... |
24 |
|
26 |
|
Line 33... |
Line 35... |
33 |
this.collectionId = collectionId;
|
35 |
this.collectionId = collectionId;
|
34 |
this.roleId = roleId;
|
36 |
this.roleId = roleId;
|
35 |
}
|
37 |
}
|
Line 36... |
Line 38... |
36 |
|
38 |
|
37 |
@Override
|
39 |
@Override
|
38 |
public void load(TransformateurJSONaModelData reader, Object loadConfig, AsyncCallback callback, String recherche) {
|
40 |
public void load(TransformateurJSONaModelData reader, Object loadConfig, AsyncCallback callback, String recherche) {
|
39 |
this.reader = reader;
|
41 |
this.reader = reader;
|
40 |
this.callback = callback;
|
42 |
this.callback = callback;
|
41 |
this.loadConfig = loadConfig;
|
43 |
this.loadConfig = loadConfig;
|
42 |
|
44 |
|
- |
|
45 |
BasePagingLoadConfig lc = (BasePagingLoadConfig)loadConfig;
|
43 |
BasePagingLoadConfig lc = (BasePagingLoadConfig)loadConfig;
|
46 |
if (this.collectionId != null && !UtilString.isEmpty(this.collectionId)) {
|
- |
|
47 |
mediateur.selectionnerCollectionAPersonne(this, this.collectionId, this.roleId, recherche, lc.getOffset(), lc.getLimit(), sequenceur);
|
- |
|
48 |
} else {
|
44 |
mediateur.selectionnerCollectionAPersonne(this, this.collectionId, this.roleId, recherche, lc.getOffset(), lc.getLimit(), sequenceur);
|
49 |
this.rafraichir(null);
|
- |
|
50 |
}
|
Line 45... |
Line 51... |
45 |
}
|
51 |
}
|
46 |
|
52 |
|
47 |
@Override
|
53 |
@Override
|