Subversion Repositories eFlore/Applications.del

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
101 benjamin 1
package org.tela_botanica.del.client.composants.validation;
2
 
3
import com.google.gwt.user.client.ui.HTML;
4
import com.google.gwt.user.client.ui.TextBox;
5
 
6
public abstract class AbstractTextFieldValidator extends AbstractFormValidator{
7
 
8
	private TextBox textBox;
109 aurelien 9
	protected String styleErreur = "erreurFormTexte";
101 benjamin 10
 
109 aurelien 11
	public AbstractTextFieldValidator(TextBox textBox) {
12
		this.textBox = textBox;
101 benjamin 13
	}
109 aurelien 14
 
15
	public AbstractTextFieldValidator(TextBox textBox, String styleErreur) {
101 benjamin 16
		this.textBox = textBox;
109 aurelien 17
		this.styleErreur = styleErreur;
101 benjamin 18
	}
19
 
20
	public TextBox getTextBox() {
21
		return textBox;
22
	}
23
 
24
	public void setTextBox(TextBox textBox) {
25
		this.textBox = textBox;
26
	}
109 aurelien 27
 
28
	public String getStyleErreur() {
29
		return styleErreur;
30
	}
101 benjamin 31
 
109 aurelien 32
	public void setStyleErreur(String styleErreur) {
33
		this.styleErreur = styleErreur;
34
	}
35
 
101 benjamin 36
}