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