Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 517 Rev 845
Line 138... Line 138...
138
 
138
 
139
	protected void validate() {
139
	protected void validate() {
140
		validerBouton.setEnabled(hasValue(login) && hasValue(motDePasse) && motDePasse.getValue().length() > 3);
140
		validerBouton.setEnabled(hasValue(login) && hasValue(motDePasse) && motDePasse.getValue().length() > 3);
Line 141... Line 141...
141
	}
141
	}
142
 
142
 
143
	public void rafraichir(Object nouvelleDonnees) {
143
	public void rafraichir(Object nouvellesDonnees) {
144
		if (nouvelleDonnees instanceof Information) {
144
		if (nouvellesDonnees instanceof Information) {
145
			Information info = (Information) nouvelleDonnees;
145
			Information info = (Information) nouvellesDonnees;
146
			if (info.getType().equals("maj_utilisateur")) {
146
			if (info.getType().equals("maj_utilisateur")) {
147
				Utilisateur utilisateurCourant = ((Utilisateur) Registry.get(RegistreId.UTILISATEUR_COURANT));
147
				Utilisateur utilisateurCourant = ((Utilisateur) Registry.get(RegistreId.UTILISATEUR_COURANT));
148
				if (utilisateurCourant.isIdentifie() == false) {
148
				if (utilisateurCourant.isIdentifie() == false) {
Line 155... Line 155...
155
				} else {
155
				} else {
156
					hide();
156
					hide();
157
				}
157
				}
158
			}
158
			}
159
		} else {
159
		} else {
160
			GWT.log("Ce type d'objet n'est pas pris en compte par la méthode rafraichir de la classe "+getClass(), null);
160
			GWT.log(Mediateur.i18nM.erreurRafraichir(nouvellesDonnees.getClass(), this.getClass()), null);
161
		}
161
		}
Line 162... Line 162...
162
		
162
		
Line 163... Line 163...
163
	}
163
	}