Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 566 Rev 609
Line 113... Line 113...
113
		});
113
		});
114
		add(grille);
114
		add(grille);
115
	}
115
	}
Line 116... Line 116...
116
 
116
 
117
	private void clicListe(Structure structure) {
-
 
118
		if (store.getCount() > 0) {
117
	private void clicListe(Structure structure) {
119
			mediateur.clicListeStructure(structure);
-
 
120
		}
118
		mediateur.clicListeStructure(structure);
Line 121... Line 119...
121
	}
119
	}
122
	
-
 
123
	private void clicSupprimerStructure(List<Structure> structuresASupprimer) {
120
	
124
		if (store.getCount() > 0) {
-
 
125
			mediateur.clicSupprimerStructure(this, structuresASupprimer);
121
	private void clicSupprimerStructure(List<Structure> structuresASupprimer) {
Line 126... Line 122...
126
		}
122
		mediateur.clicSupprimerStructure(this, structuresASupprimer);
127
	}
123
	}
128
 
124
 
Line 145... Line 141...
145
			
141
			
146
			if (structures != null) {
142
			if (structures != null) {
147
				List<Structure> liste = (List<Structure>) structures.toList();
143
				List<Structure> liste = (List<Structure>) structures.toList();
148
				store.removeAll();
144
				store.removeAll();
149
				store.add(liste);
145
				store.add(liste);
150
	
146
 
Line 151... Line 147...
151
				gererEtatActivationBouton();
147
				gererEtatActivationBouton();
152
				
148
				
153
				mediateur.actualiserPanneauCentral();
149
				mediateur.actualiserPanneauCentral();
Line 157... Line 153...
157
			if (info.getType().equals("suppression_structure")) {
153
			if (info.getType().equals("suppression_structure")) {
158
				// Affichage d'un message d'information 
154
				// Affichage d'un message d'information 
159
				//GWT.log(info.toString(), null);
155
				//GWT.log(info.toString(), null);
160
				Info.display(i18nC.suppressionStructure(), info.toString().replaceAll("\n", "<br />"));
156
				Info.display(i18nC.suppressionStructure(), info.toString().replaceAll("\n", "<br />"));
Line 161... Line 157...
161
 
157
 
162
				// Suppression des structures sélectionnées
158
				// Suppression des structures sélectionnées de la grille
163
				List<Structure> selectionStructure = grille.getSelectionModel().getSelectedItems();
159
				List<Structure> selectionStructure = grille.getSelectionModel().getSelectedItems();
164
				final int taille = selectionStructure.size();
160
				final int taille = selectionStructure.size();
165
				for (int i = 0; i < taille; i++) {
161
				for (int i = 0; i < taille; i++) {
166
					//GWT.log("INDEX :"+table.indexOf(selectionStructure.get(i)), null);
162
					//GWT.log("INDEX :"+table.indexOf(selectionStructure.get(i)), null);
167
					store.remove(selectionStructure.get(i));
163
					store.remove(selectionStructure.get(i));
Line -... Line 164...
-
 
164
				}
168
				}
165
				
169
				
166
				
170
				gererEtatActivationBouton();
167
				gererEtatActivationBouton();
171
			} else if (info.getType().equals("maj_utilisateur")) {
168
			} else if (info.getType().equals("maj_utilisateur")) {
172
				gererEtatActivationBouton();
169
				gererEtatActivationBouton();