/branches/v1.1-aramon/src/org/tela_botanica/client/composants/pagination/ProxyCollectionAPersonne.java |
---|
11,7 → 11,6 |
import org.tela_botanica.client.modeles.ValeurListeAsyncDao; |
import org.tela_botanica.client.synchronisation.Sequenceur; |
import org.tela_botanica.client.util.Debug; |
import org.tela_botanica.client.util.UtilString; |
import com.extjs.gxt.ui.client.Registry; |
import com.extjs.gxt.ui.client.data.BasePagingLoadConfig; |
37,15 → 36,12 |
@Override |
public void load(TransformateurJSONaModelData reader, Object loadConfig, AsyncCallback callback, String recherche) { |
this.reader = reader; |
this.callback = callback; |
this.loadConfig = loadConfig; |
this.reader = reader; |
this.callback = callback; |
this.loadConfig = loadConfig; |
BasePagingLoadConfig lc = (BasePagingLoadConfig)loadConfig; |
if (!UtilString.isEmpty(this.collectionId)) { |
mediateur.selectionnerCollectionAPersonne(this, this.collectionId, this.roleId, recherche, lc.getOffset(), lc.getLimit(), sequenceur); |
} |
BasePagingLoadConfig lc = (BasePagingLoadConfig)loadConfig; |
mediateur.selectionnerCollectionAPersonne(this, this.collectionId, this.roleId, recherche, lc.getOffset(), lc.getLimit(), sequenceur); |
} |
@Override |
54,24 → 50,23 |
try |
{ |
D donneesRetour = null; |
if (nouvellesDonnees!=null) { |
data = nouvellesDonnees; |
if (reader != null) |
{ |
donneesRetour = (D) reader.read(loadConfig, data); |
} |
else |
{ |
donneesRetour = (D) data; |
if (donneesRetour instanceof List) |
{ |
donneesRetour = (D) new ArrayList((List) donneesRetour); |
} |
} |
} |
callback.onSuccess(donneesRetour); |
data = nouvellesDonnees; |
D d = null; |
if (reader != null) |
{ |
d = (D) reader.read(loadConfig, data); |
} |
else |
{ |
d = (D) data; |
if (d instanceof List) |
{ |
d = (D) new ArrayList((List) d); |
} |
} |
callback.onSuccess(d); |
} |
catch (Exception e) |
{ |
/branches/v1.1-aramon/src/org/tela_botanica/client/composants/pagination/ProxyPublicationsAPersonne.java |
---|
10,10 → 10,8 |
import org.tela_botanica.client.modeles.Valeur; |
import org.tela_botanica.client.modeles.ValeurListe; |
import org.tela_botanica.client.modeles.ValeurListeAsyncDao; |
import org.tela_botanica.client.modeles.publication.PublicationAPersonneListe; |
import org.tela_botanica.client.synchronisation.Sequenceur; |
import org.tela_botanica.client.util.Debug; |
import org.tela_botanica.client.util.UtilString; |
import com.extjs.gxt.ui.client.Registry; |
import com.extjs.gxt.ui.client.data.BasePagingLoadConfig; |
38,17 → 36,12 |
@Override |
public void load(TransformateurJSONaModelData reader, Object loadConfig, AsyncCallback callback, String recherche) { |
this.reader = reader; |
this.callback = callback; |
this.loadConfig = loadConfig; |
this.reader = reader; |
this.callback = callback; |
this.loadConfig = loadConfig; |
BasePagingLoadConfig lc = (BasePagingLoadConfig)loadConfig; |
if (!UtilString.isEmpty(this.personneId)) { |
mediateur.selectionnerPublicationsAPersonne(this, personneId, rolesId, recherche, lc.getOffset(), lc.getLimit(), sequenceur); |
} else { |
this.rafraichir(null); |
} |
BasePagingLoadConfig lc = (BasePagingLoadConfig)loadConfig; |
mediateur.selectionnerPublicationsAPersonne(this, personneId, rolesId, recherche, lc.getOffset(), lc.getLimit(), sequenceur); |
} |
public void setPersonneId(String personneId) { |
65,24 → 58,23 |
try |
{ |
D donneesRetour = null; |
if (nouvellesDonnees!=null) { |
data = nouvellesDonnees; |
if (reader != null) |
{ |
donneesRetour = (D) reader.read(loadConfig, data); |
} |
else |
{ |
donneesRetour = (D) data; |
if (donneesRetour instanceof List) |
{ |
donneesRetour = (D) new ArrayList((List) donneesRetour); |
} |
} |
} |
callback.onSuccess(donneesRetour); |
data = nouvellesDonnees; |
D d = null; |
if (reader != null) |
{ |
d = (D) reader.read(loadConfig, data); |
} |
else |
{ |
d = (D) data; |
if (d instanceof List) |
{ |
d = (D) new ArrayList((List) d); |
} |
} |
callback.onSuccess(d); |
} |
catch (Exception e) |
{ |
/branches/v1.1-aramon/src/org/tela_botanica/client/composants/pagination/ProxyCollectionACommentaire.java |
---|
11,7 → 11,6 |
import org.tela_botanica.client.modeles.ValeurListeAsyncDao; |
import org.tela_botanica.client.synchronisation.Sequenceur; |
import org.tela_botanica.client.util.Debug; |
import org.tela_botanica.client.util.UtilString; |
import com.extjs.gxt.ui.client.Registry; |
import com.extjs.gxt.ui.client.data.BasePagingLoadConfig; |
35,14 → 34,12 |
@Override |
public void load(TransformateurJSONaModelData reader, Object loadConfig, AsyncCallback callback, String recherche) { |
this.reader = reader; |
this.callback = callback; |
this.loadConfig = loadConfig; |
this.reader = reader; |
this.callback = callback; |
this.loadConfig = loadConfig; |
BasePagingLoadConfig lc = (BasePagingLoadConfig)loadConfig; |
if (!UtilString.isEmpty(this.collectionId)) { |
mediateur.selectionnerCollectionACommentaire(this, this.collectionId, recherche, lc.getOffset(), lc.getLimit(), sequenceur); |
} |
BasePagingLoadConfig lc = (BasePagingLoadConfig)loadConfig; |
mediateur.selectionnerCollectionACommentaire(this, this.collectionId, recherche, lc.getOffset(), lc.getLimit(), sequenceur); |
} |
@Override |
50,24 → 47,23 |
public void rafraichir(Object nouvellesDonnees) { |
try |
{ |
D donneesRetour = null; |
if (nouvellesDonnees!=null) { |
data = nouvellesDonnees; |
if (reader != null) |
{ |
donneesRetour = (D) reader.read(loadConfig, data); |
} |
else |
{ |
donneesRetour = (D) data; |
if (donneesRetour instanceof List) |
{ |
donneesRetour = (D) new ArrayList((List) donneesRetour); |
} |
} |
} |
callback.onSuccess(donneesRetour); |
data = nouvellesDonnees; |
D d = null; |
if (reader != null) |
{ |
d = (D) reader.read(loadConfig, data); |
} |
else |
{ |
d = (D) data; |
if (d instanceof List) |
{ |
d = (D) new ArrayList((List) d); |
} |
} |
callback.onSuccess(d); |
} |
catch (Exception e) |
{ |
/branches/v1.1-aramon/src/org/tela_botanica/client/composants/pagination/ProxyCollectionAPublication.java |
---|
11,7 → 11,6 |
import org.tela_botanica.client.modeles.ValeurListeAsyncDao; |
import org.tela_botanica.client.synchronisation.Sequenceur; |
import org.tela_botanica.client.util.Debug; |
import org.tela_botanica.client.util.UtilString; |
import com.extjs.gxt.ui.client.Registry; |
import com.extjs.gxt.ui.client.data.BasePagingLoadConfig; |
35,15 → 34,12 |
@Override |
public void load(TransformateurJSONaModelData reader, Object loadConfig, AsyncCallback callback, String recherche) { |
this.reader = reader; |
this.callback = callback; |
this.loadConfig = loadConfig; |
this.reader = reader; |
this.callback = callback; |
this.loadConfig = loadConfig; |
BasePagingLoadConfig lc = (BasePagingLoadConfig)loadConfig; |
if (!UtilString.isEmpty(this.collectionId)) { |
mediateur.selectionnerCollectionAPublication(this, this.collectionId, recherche, lc.getOffset(), lc.getLimit(), sequenceur); |
} |
BasePagingLoadConfig lc = (BasePagingLoadConfig)loadConfig; |
mediateur.selectionnerCollectionAPublication(this, this.collectionId, recherche, lc.getOffset(), lc.getLimit(), sequenceur); |
} |
@Override |
52,24 → 48,23 |
try |
{ |
D donneesRetour = null; |
if (nouvellesDonnees!=null) { |
data = nouvellesDonnees; |
if (reader != null) |
{ |
donneesRetour = (D) reader.read(loadConfig, data); |
} |
else |
{ |
donneesRetour = (D) data; |
if (donneesRetour instanceof List) |
{ |
donneesRetour = (D) new ArrayList((List) donneesRetour); |
} |
} |
} |
callback.onSuccess(donneesRetour); |
data = nouvellesDonnees; |
D d = null; |
if (reader != null) |
{ |
d = (D) reader.read(loadConfig, data); |
} |
else |
{ |
d = (D) data; |
if (d instanceof List) |
{ |
d = (D) new ArrayList((List) d); |
} |
} |
callback.onSuccess(d); |
} |
catch (Exception e) |
{ |