Subversion Repositories eFlore/Applications.del

Rev

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

Rev 210 Rev 228
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.TextBox;
4
import com.google.gwt.user.client.ui.TextBox;
5
 
5
 
6
public abstract class AbstractTextFieldValidator extends AbstractFormValidator{
6
public abstract class ValidateurChampTexteAbstrait extends ValidateurFormulaireAbstrait {
7
 
7
 
8
	private TextBox textBox;
8
	private TextBox textBox;
9
	protected String styleErreur = "erreurFormTexte";
9
	protected String styleErreur = "erreurFormTexte";
10
 
10
 
11
	public AbstractTextFieldValidator(TextBox textBox) {
11
	public ValidateurChampTexteAbstrait(TextBox textBox) {
12
		this.textBox = textBox;
12
		this.textBox = textBox;
13
	}
13
	}
14
	
14
	
15
	public AbstractTextFieldValidator(TextBox textBox, String styleErreur) {
15
	public ValidateurChampTexteAbstrait(TextBox textBox, String styleErreur) {
16
		this.textBox = textBox;
16
		this.textBox = textBox;
17
		this.styleErreur = styleErreur;
17
		this.styleErreur = styleErreur;
18
	}
18
	}
19
 
19
 
20
	public TextBox getTextBox() {
20
	public TextBox getTextBox() {
21
		return textBox;
21
		return textBox;
22
	}
22
	}
23
 
23
 
24
	public void setTextBox(TextBox textBox) {
24
	public void setTextBox(TextBox textBox) {
25
		this.textBox = textBox;
25
		this.textBox = textBox;
26
	}
26
	}
27
	
27
	
28
	public String getStyleErreur() {
28
	public String getStyleErreur() {
29
		return styleErreur;
29
		return styleErreur;
30
	}
30
	}
31
 
31
 
32
	public void setStyleErreur(String styleErreur) {
32
	public void setStyleErreur(String styleErreur) {
33
		this.styleErreur = styleErreur;
33
		this.styleErreur = styleErreur;
34
	}
34
	}
35
 
35
 
36
}
36
}