Line 514... |
Line 514... |
514 |
public void rafraichirInformation(Information info) {
|
514 |
public void rafraichirInformation(Information info) {
|
515 |
if (info.getMessages() != null && !info.getMessages().toString().equals("[]")) {
|
515 |
if (info.getMessages() != null && !info.getMessages().toString().equals("[]")) {
|
516 |
GWT.log("MESSAGES:\n"+info.getMessages().toString(), null);
|
516 |
GWT.log("MESSAGES:\n"+info.getMessages().toString(), null);
|
517 |
}
|
517 |
}
|
518 |
String type = info.getType();
|
518 |
String type = info.getType();
|
- |
|
519 |
if (info.getType().equals("liste_collection_a_commentaire")) {
|
- |
|
520 |
if (info.getDonnee(0) != null) {
|
- |
|
521 |
initialiser();
|
- |
|
522 |
collection.setCommentairesLiees((CollectionACommentaireListe) info.getDonnee(0));
|
- |
|
523 |
chargementCommentairesOk = true;
|
- |
|
524 |
}
|
519 |
if (info.getType().equals("ajout_collection")) {
|
525 |
} else if (info.getType().equals("ajout_collection")) {
|
520 |
if (info.getDonnee(0) != null && info.getDonnee(0) instanceof String) {
|
526 |
if (info.getDonnee(0) != null && info.getDonnee(0) instanceof String) {
|
521 |
String collectionId = (String) info.getDonnee(0);
|
527 |
String collectionId = (String) info.getDonnee(0);
|
Line 522... |
Line 528... |
522 |
|
528 |
|
523 |
// Suite à la récupération de l'id de la collection nouvellement ajoutée nous ajoutons les personnes liées
|
529 |
// Suite à la récupération de l'id de la collection nouvellement ajoutée nous ajoutons les personnes liées
|
Line 545... |
Line 551... |
545 |
Info.display("Suppression des notes liées à la collection", info.toString());
|
551 |
Info.display("Suppression des notes liées à la collection", info.toString());
|
546 |
initialiserGestionCommentaires();
|
552 |
initialiserGestionCommentaires();
|
547 |
} else if (info.getType().equals("ajout_collection_a_commentaire")) {
|
553 |
} else if (info.getType().equals("ajout_collection_a_commentaire")) {
|
548 |
Info.display("Ajout des notes liées à la collection", info.toString());
|
554 |
Info.display("Ajout des notes liées à la collection", info.toString());
|
549 |
initialiserGestionCommentaires();
|
555 |
initialiserGestionCommentaires();
|
550 |
} else if (info.getType().equals("liste_collection_a_commentaire")) {
|
- |
|
551 |
if (info.getDonnee(0) != null) {
|
- |
|
552 |
initialiser();
|
- |
|
553 |
collection.setCommentairesLiees((CollectionACommentaireListe) info.getDonnee(0));
|
- |
|
554 |
chargementCommentairesOk = true;
|
- |
|
555 |
}
|
- |
|
556 |
}
|
556 |
}
|
557 |
}
|
557 |
}
|
Line 558... |
Line 558... |
558 |
|
558 |
|
559 |
private void rafraichirCommentairesListe(CommentaireListe listeCommentaires) {
|
559 |
private void rafraichirCommentairesListe(CommentaireListe listeCommentaires) {
|