Subversion Repositories eFlore/Applications.coel

Rev

Rev 1100 | Rev 1246 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1100 Rev 1239
Line 3... Line 3...
3
import java.util.ArrayList;
3
import java.util.ArrayList;
Line 4... Line 4...
4
 
4
 
5
import org.tela_botanica.client.ComposantClass;
5
import org.tela_botanica.client.ComposantClass;
6
import org.tela_botanica.client.Mediateur;
6
import org.tela_botanica.client.Mediateur;
-
 
7
import org.tela_botanica.client.composants.ChampSliderPourcentage;
7
import org.tela_botanica.client.composants.ChampSliderPourcentage;
8
import org.tela_botanica.client.composants.InfoLogger;
8
import org.tela_botanica.client.interfaces.Rafraichissable;
9
import org.tela_botanica.client.interfaces.Rafraichissable;
9
import org.tela_botanica.client.modeles.Information;
10
import org.tela_botanica.client.modeles.Information;
10
import org.tela_botanica.client.modeles.MenuApplicationId;
11
import org.tela_botanica.client.modeles.MenuApplicationId;
11
import org.tela_botanica.client.modeles.commentaire.Commentaire;
12
import org.tela_botanica.client.modeles.commentaire.Commentaire;
Line 145... Line 146...
145
		}
146
		}
Line 146... Line 147...
146
		
147
		
147
		if (etreValide()) {
148
		if (etreValide()) {
148
			initialiserValidation();
149
			initialiserValidation();
149
			repandreRafraichissement();
150
			repandreRafraichissement();
150
			controlerFermetureApresRafraichissement();
151
			controlerFermeture();
151
		}
152
		}
Line 152... Line 153...
152
	}
153
	}
153
	
154
	
Line 192... Line 193...
192
			}
193
			}
193
		}
194
		}
Line 194... Line 195...
194
		
195
		
195
		// Gestion des messages
196
		// Gestion des messages
196
		if (info.getType().equals("modif_commentaire")) {
197
		if (info.getType().equals("modif_commentaire")) {
197
			Info.display("Modification d'une note", info.toString());
198
			InfoLogger.display("Modification d'une note", info.toString());
198
		} else if (info.getType().equals("ajout_commentaire")) {
199
		} else if (info.getType().equals("ajout_commentaire")) {
199
			if (info.getDonnee(0) != null && info.getDonnee(0) instanceof String) {
200
			if (info.getDonnee(0) != null && info.getDonnee(0) instanceof String) {
200
				String noteId = (String) info.getDonnee(0);
201
				String noteId = (String) info.getDonnee(0);
201
				Info.display("Ajout d'une note", "La note '"+noteId+"' a bien été ajoutée");
202
				InfoLogger.display("Ajout d'une note", "La note '"+noteId+"' a bien été ajoutée");
202
			} else {
203
			} else {
203
				Info.display("Ajout d'une note", info.toString());
204
				InfoLogger.display("Ajout d'une note", info.toString());
204
			}
205
			}
205
		}
206
		}
Line 206... Line 207...
206
	}
207
	}