Subversion Repositories eFlore/Applications.del

Rev

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

Rev 101 Rev 103
Line 11... Line 11...
11
		super(textBox, sideHTML);
11
		super(textBox, sideHTML);
12
	}
12
	}
Line 13... Line 13...
13
 
13
 
14
	@Override
14
	@Override
15
	public boolean validate() {
15
	public boolean validate() {
16
		if(getTextBox().getText().length()>=0&&!getTextBox().getText().equals("")){
16
		if (getTextBox().getText().length() >= 0 && !getTextBox().getText().equals("")) {
17
			getSideHTML().setHTML("");
17
			getSideHTML().setHTML("");
18
			return true;
-
 
19
		}
18
			return true;
20
		else {
19
		} else {
21
			getSideHTML().setHTML("<font color='red'>"+I18n.getVocabulary().texteNonNull()+"</font>");
20
			getSideHTML().setHTML("<font color='red'>" + I18n.getVocabulary().texteNonNull() + "</font>");
22
			return false;
21
			return false;
23
		}
22
		}
Line 24... Line 23...
24
	}
23
	}