Subversion Repositories eFlore/Applications.del

Rev

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

Rev 536 Rev 549
Line 1... Line 1...
1
package org.tela_botanica.del.client.composants.identification;
1
package org.tela_botanica.del.client.composants.identification;
Line -... Line 2...
-
 
2
 
2
 
3
import org.tela_botanica.del.client.i18n.I18n;
3
import org.tela_botanica.del.client.modeles.Utilisateur;
4
import org.tela_botanica.del.client.modeles.Utilisateur;
4
import com.google.gwt.core.client.GWT;
5
import com.google.gwt.core.client.GWT;
5
import com.google.gwt.event.dom.client.HasClickHandlers;
6
import com.google.gwt.event.dom.client.HasClickHandlers;
6
import com.google.gwt.uibinder.client.UiBinder;
7
import com.google.gwt.uibinder.client.UiBinder;
Line 66... Line 67...
66
	public HasClickHandlers getBoutonOK() {
67
	public HasClickHandlers getBoutonOK() {
67
		return boutonOK;
68
		return boutonOK;
68
	}
69
	}
Line 69... Line 70...
69
 
70
 
70
	@Override
71
	@Override
71
	public String getLogin() {
72
	public TextBox getLogin() {
72
		return login.getText();
73
		return login;
Line 73... Line 74...
73
	}
74
	}
74
 
75
 
75
	@Override
76
	@Override
76
	public String getMotdepasse() {
77
	public TextBox getMotdepasse() {
Line 77... Line 78...
77
		return motdepasse.getText();
78
		return motdepasse;
78
	}
79
	}
79
 
80
 
Line 97... Line 98...
97
		login.setText("");
98
		login.setText("");
98
		motdepasse.setText("");
99
		motdepasse.setText("");
99
	}
100
	}
Line 100... Line 101...
100
	
101
	
101
	@Override
102
	@Override
-
 
103
	public void setErreur(String idTexte) {
-
 
104
		String texte = "";
-
 
105
		if (idTexte.equals("saisirLogin")) {
-
 
106
			texte = I18n.getMessages().saisirLogin(); 
-
 
107
		} else {
-
 
108
			I18n.getMessages().identificationRefus();
102
	public void setErreur(String texte) {
109
		}
103
		erreurIdentification.setText(texte);
110
		erreurIdentification.setText(texte);
-
 
111
	}
-
 
112
	
-
 
113
	public String getErreur() {
-
 
114
		return erreurIdentification.getText();
104
	}
115
	}