Line 95... |
Line 95... |
95 |
private Viewport viewport;
|
95 |
private Viewport viewport;
|
96 |
private Modele modele = null;
|
96 |
private Modele modele = null;
|
97 |
public static final Constantes i18nC = getI18nConstante();
|
97 |
public static final Constantes i18nC = getI18nConstante();
|
98 |
public static final ErrorMessages i18nM = getI18nMessage();
|
98 |
public static final ErrorMessages i18nM = getI18nMessage();
|
99 |
public static final boolean DEBUG = true;
|
99 |
public static final boolean DEBUG = true;
|
100 |
public static final boolean DEBUG_CHARGEMENT = false;
|
100 |
public static final boolean DEBUG_CHARGEMENT = true;
|
Line 101... |
Line 101... |
101 |
|
101 |
|
102 |
private EnteteVue panneauNord = null;
|
102 |
private EnteteVue panneauNord = null;
|
103 |
private NavigationVue panneauOuest = null;
|
103 |
private NavigationVue panneauOuest = null;
|
104 |
private ContenuVue panneauCentre = null;
|
104 |
private ContenuVue panneauCentre = null;
|
Line 297... |
Line 297... |
297 |
if (DEBUG_CHARGEMENT) System.out.println("[CHARGEMENT] Problème : l'objet "+caller+" essaie de désactiver le chargement alors qu'il ne l'a pas initié.");
|
297 |
if (DEBUG_CHARGEMENT) System.out.println("[CHARGEMENT] Problème : l'objet "+caller+" essaie de désactiver le chargement alors qu'il ne l'a pas initié.");
|
298 |
}
|
298 |
}
|
299 |
else fileDAttenteChargement.put(caller, fileDAttenteChargement.get(caller)-1);
|
299 |
else fileDAttenteChargement.put(caller, fileDAttenteChargement.get(caller)-1);
|
Line 300... |
Line 300... |
300 |
|
300 |
|
- |
|
301 |
if (!chargementsEnCours()) desactiverChargement();
|
- |
|
302 |
else if (DEBUG_CHARGEMENT) {
|
- |
|
303 |
System.out.println("[CHARGEMENT] Patienter, il y a encore un chargement en cours.");
|
- |
|
304 |
debugFileAttente();
|
301 |
if (!chargementsEnCours()) desactiverChargement();
|
305 |
}
|
Line 302... |
Line 306... |
302 |
}
|
306 |
}
|
303 |
|
307 |
|
304 |
private void desactiverChargement() {
|
308 |
private void desactiverChargement() {
|
Line 322... |
Line 326... |
322 |
System.out.println("[CHARGEMENT]--< StackTrace >------------------------------------------------------");
|
326 |
System.out.println("[CHARGEMENT]--< StackTrace >------------------------------------------------------");
|
323 |
if (fileDAttenteChargement.size() == 0) System.out.println("(Empty)");
|
327 |
if (fileDAttenteChargement.size() == 0) System.out.println("(Empty)");
|
324 |
Iterator<Object> it = fileDAttenteChargement.keySet().iterator();
|
328 |
Iterator<Object> it = fileDAttenteChargement.keySet().iterator();
|
325 |
while (it.hasNext()) {
|
329 |
while (it.hasNext()) {
|
326 |
Object o = it.next();
|
330 |
Object o = it.next();
|
327 |
System.out.println(" ==> ["+o+"] = "+fileDAttenteChargement.get(o));
|
331 |
System.out.println(" ["+o+"] = "+fileDAttenteChargement.get(o));
|
328 |
}
|
332 |
}
|
329 |
}
|
333 |
}
|
Line 330... |
Line 334... |
330 |
|
334 |
|
331 |
//+----------------------------------------------------------------------------------------------------------------+
|
335 |
//+----------------------------------------------------------------------------------------------------------------+
|
Line 1105... |
Line 1109... |
1105 |
}
|
1109 |
}
|
Line 1106... |
Line 1110... |
1106 |
|
1110 |
|
1107 |
//+----------------------------------------------------------------------------------------------------------------+
|
1111 |
//+----------------------------------------------------------------------------------------------------------------+
|
Line -... |
Line 1112... |
- |
|
1112 |
// GESTION de la relation COLLECTION A PUBLICATION
|
- |
|
1113 |
|
- |
|
1114 |
public void selectionnerCollectionAPublication(Rafraichissable vueARafraichir, String collectionId, String recherche, int start, int nbElements, Sequenceur sequenceur) {
|
- |
|
1115 |
if (Mediateur.DEBUG) System.out.println("MEDIATEUR - selectionner CollectionAPublication");
|
- |
|
1116 |
Integer seqId = null;
|
- |
|
1117 |
if (sequenceur!=null) {
|
- |
|
1118 |
seqId = sequenceur.lancerRequeteSynchrone(vueARafraichir);
|
- |
|
1119 |
vueARafraichir = sequenceur;
|
- |
|
1120 |
}
|
- |
|
1121 |
modele.selectionnerCollectionAPublication(vueARafraichir, collectionId, recherche, start, nbElements, seqId);
|
1108 |
// GESTION de la relation COLLECTION A PUBLICATION
|
1122 |
}
|
1109 |
|
1123 |
|
1110 |
public void selectionnerCollectionAPublication(Rafraichissable vueARafraichir, String collectionId, Sequenceur sequenceur) {
|
1124 |
public void selectionnerCollectionAPublication(Rafraichissable vueARafraichir, String collectionId, Sequenceur sequenceur) {
|
1111 |
if (Mediateur.DEBUG) System.out.println("MEDIATEUR - selectionner CollectionAPublication");
|
1125 |
if (Mediateur.DEBUG) System.out.println("MEDIATEUR - selectionner CollectionAPublication");
|
1112 |
Integer seqId = null;
|
1126 |
Integer seqId = null;
|