Subversion Repositories eFlore/Applications.del

Rev

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

Rev 228 Rev 305
Line 1... Line 1...
1
package org.tela_botanica.del.client.composants.validation;
1
package org.tela_botanica.del.client.composants.validation;
Line 2... Line 2...
2
 
2
 
Line 3... Line 3...
3
import org.tela_botanica.del.client.i18n.I18n;
3
import org.tela_botanica.del.client.i18n.I18n;
-
 
4
 
4
 
5
import com.google.gwt.user.client.ui.HTML;
Line 5... Line 6...
5
import com.google.gwt.user.client.ui.HTML;
6
import com.google.gwt.user.client.ui.HasText;
Line 6... Line 7...
6
import com.google.gwt.user.client.ui.TextBox;
7
import com.google.gwt.user.client.ui.TextBox;
7
 
8
 
8
 
9
 
Line 9... Line 10...
9
public class ValidateurChampDouble extends ValidateurChampTexteAbstrait {
10
public class ValidateurChampDouble extends ValidateurChampTexteAbstrait {
10
 
11
 
11
	public ValidateurChampDouble(TextBox textBox) {
12
	public ValidateurChampDouble(HasText textBox) {
12
		super(textBox);
13
		super(textBox);
13
	}
14
	}
14
 
15
 
15
	@Override
16
	@Override
16
	public boolean valider() {
17
	public boolean valider() {
17
		try {
18
		try {
18
			Double.parseDouble(getTextBox().getText());
19
			Double.parseDouble(getTextBox().getText());
19
			getTextBox().removeStyleName(getStyleErreur());
20
			supprimerStyleErreur(getStyleErreur());
Line 20... Line 21...
20
			return true;
21
			return true;