Subversion Repositories eFlore/Applications.cel

Rev

Rev 989 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 989 Rev 1289
1
package org.tela_botanica.client.modeles.objets;
1
package org.tela_botanica.client.modeles.objets;
2
 
-
 
3
import com.google.gwt.core.client.GWT;
-
 
4
import com.google.gwt.user.client.Window;
-
 
5
 
2
 
6
/**
3
/**
7
 * 
4
 * 
8
 * Classe representant une entite geographique (localite, commune, lieu dit) presente dans la liste des observations
5
 * Classe representant une entite geographique (localite, commune, lieu dit) presente dans la liste des observations
9
 * 
6
 * 
10
 */
7
 */
11
 
8
 
12
public class DateObservation {
9
public class DateObservation {
13
 
-
 
14
 
-
 
15
	
10
	
16
	private String annee=null;
11
	private String annee=null;
17
	private String mois=null;
12
	private String mois=null;
18
	private String jour=null;
13
	private String jour=null;
19
	
-
 
20
	
-
 
21
 
-
 
22
	
-
 
23
	public DateObservation() {
-
 
24
		// TODO Auto-generated constructor stub
-
 
25
	}
-
 
26
 
-
 
27
	
14
	
28
	/**
15
	/**
29
	 * @param commune
16
	 * @param commune
30
	 * @param departement
17
	 * @param departement
31
	 */
18
	 */
32
	
-
 
33
	public DateObservation(String date) {
19
	public DateObservation(String date) {
34
		
20
		
35
		String dateTab[] = date.split(" ") ;
21
		String dateTab[] = date.split(" ") ;
36
		String dateSpl[] = dateTab[0].split("-") ;
22
		String dateSpl[] = dateTab[0].split("-") ;
37
		
23
		
38
		annee= dateSpl[0];
24
		annee= dateSpl[0];
39
		mois= dateSpl[1];
25
		mois= dateSpl[1];
40
		jour= dateSpl[2];
26
		jour= dateSpl[2];
41
		
27
		
42
	}
28
	}
43
 
-
 
44
 
-
 
45
 
29
 
46
	public String getAnnee() {
30
	public String getAnnee() {
47
		return annee;
31
		return annee;
48
	}
32
	}
49
 
33
 
50
 
34
 
51
	public String getMois() {
35
	public String getMois() {
52
		return mois;
36
		return mois;
53
	}
37
	}
54
 
38
 
55
 
39
 
56
	public String getJour() {
40
	public String getJour() {
57
		return jour;
41
		return jour;
58
	}
42
	}
59
 
-
 
60
}
43
}