Subversion Repositories eFlore/Applications.del

Rev

Rev 228 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 228 Rev 305
1
package org.tela_botanica.del.client.composants.validation;
1
package org.tela_botanica.del.client.composants.validation;
2
 
2
 
3
import com.google.gwt.user.client.ui.HTML;
3
import com.google.gwt.user.client.ui.HTML;
-
 
4
import com.google.gwt.user.client.ui.HasText;
4
import com.google.gwt.user.client.ui.TextBox;
5
import com.google.gwt.user.client.ui.TextBox;
5
 
6
 
6
public abstract class ValidateurChampTexteAbstrait extends ValidateurFormulaireAbstrait {
7
public abstract class ValidateurChampTexteAbstrait extends ValidateurFormulaireAbstrait {
7
 
8
 
8
	private TextBox textBox;
9
	private HasText textBox;
9
	protected String styleErreur = "erreurFormTexte";
10
	protected String styleErreur = "erreurFormTexte";
10
 
11
 
11
	public ValidateurChampTexteAbstrait(TextBox textBox) {
12
	public ValidateurChampTexteAbstrait(HasText textBox) {
12
		this.textBox = textBox;
13
		this.textBox = textBox;
13
	}
14
	}
14
	
15
	
15
	public ValidateurChampTexteAbstrait(TextBox textBox, String styleErreur) {
16
	public ValidateurChampTexteAbstrait(TextBox textBox, String styleErreur) {
16
		this.textBox = textBox;
17
		this.textBox = textBox;
17
		this.styleErreur = styleErreur;
18
		this.styleErreur = styleErreur;
18
	}
19
	}
19
 
20
 
20
	public TextBox getTextBox() {
21
	public HasText getTextBox() {
21
		return textBox;
22
		return textBox;
22
	}
23
	}
23
 
24
 
24
	public void setTextBox(TextBox textBox) {
25
	public void setTextBox(TextBox textBox) {
25
		this.textBox = textBox;
26
		this.textBox = textBox;
26
	}
27
	}
27
	
28
	
28
	public String getStyleErreur() {
29
	public String getStyleErreur() {
29
		return styleErreur;
30
		return styleErreur;
30
	}
31
	}
31
 
32
 
32
	public void setStyleErreur(String styleErreur) {
33
	public void setStyleErreur(String styleErreur) {
33
		this.styleErreur = styleErreur;
34
		this.styleErreur = styleErreur;
34
	}
35
	}
-
 
36
	
-
 
37
	public void afficherStyleErreur(String styleErreur) {};
-
 
38
	public void supprimerStyleErreur(String styleErreur) {};
35
 
39
 
36
}
40
}