Subversion Repositories eFlore/Applications.del

Rev

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

Rev 659 Rev 783
Line 2... Line 2...
2
 
2
 
3
import java.io.Serializable;
3
import java.io.Serializable;
4
import java.util.ArrayList;
4
import java.util.ArrayList;
Line -... Line 5...
-
 
5
import java.util.List;
-
 
6
 
5
import java.util.List;
7
import com.google.gwt.user.client.Window;
Line 6... Line 8...
6
 
8
 
7
public class Observation implements Serializable {
9
public class Observation implements Serializable {
Line 84... Line 86...
84
		return localite;
86
		return localite;
85
	}
87
	}
Line 86... Line 88...
86
 
88
 
87
	public String getLocaliteAvecIdFormatee() {
89
	public String getLocaliteAvecIdFormatee() {
-
 
90
		String localiteFormatee = this.localite;
-
 
91
		if (idLocalite != null && idLocalite.length() >= 5 && idLocalite.substring(0, 5).equals("INSEE")) {
-
 
92
			String[] tableaulocalite = idLocalite.split(":");
-
 
93
			String idLocaliteFormatee = (tableaulocalite.length == 2) ? tableaulocalite[1] : localiteFormatee;
88
		String localiteFormatee = this.localite;
94
			localiteFormatee += " (" + idLocaliteFormatee + ")";
89
		if (idLocalite != null && idLocalite.length() >= 2) {
95
		} else if (idLocalite != null && idLocalite.length() >= 2) {
90
			localiteFormatee += " (" + idLocalite.substring(0, 2) + ")";
96
			localiteFormatee += " (" + idLocalite.substring(0, 2) + ")";
Line 91... Line 97...
91
		}
97
		}
92
 
98