Subversion Repositories eFlore/Applications.del

Rev

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

Rev 1151 Rev 1152
Line 1... Line 1...
1
package org.tela_botanica.del.client.navigation.evenement.ajoutmotcleimage;
1
package org.tela_botanica.del.client.navigation.evenement.ajoutmotcleimage;
Line -... Line 2...
-
 
2
 
-
 
3
import java.util.ArrayList;
-
 
4
import java.util.List;
2
 
5
 
Line 3... Line 6...
3
import com.google.gwt.event.shared.GwtEvent;
6
import com.google.gwt.event.shared.GwtEvent;
Line 4... Line 7...
4
 
7
 
5
public class EvenementAjoutMotCleImage extends GwtEvent<GestionnaireEvenementAjoutMotCleImage> {
8
public class EvenementAjoutMotCleImage extends GwtEvent<GestionnaireEvenementAjoutMotCleImage> {
6
 
9
 
Line 7... Line 10...
7
	public static com.google.gwt.event.shared.GwtEvent.Type<GestionnaireEvenementAjoutMotCleImage> TYPE = new com.google.gwt.event.shared.GwtEvent.Type<GestionnaireEvenementAjoutMotCleImage>();
10
	public static com.google.gwt.event.shared.GwtEvent.Type<GestionnaireEvenementAjoutMotCleImage> TYPE = new com.google.gwt.event.shared.GwtEvent.Type<GestionnaireEvenementAjoutMotCleImage>();
8
	private String idImage;
11
	private String idImage;
-
 
12
	private List<String> motsCles;
-
 
13
 
-
 
14
	public EvenementAjoutMotCleImage(String idImage, String motCle) {
-
 
15
		this.idImage = idImage;
-
 
16
		if(motCle.indexOf(",") != -1) {
-
 
17
			String[] motsClesTab = motCle.split(",");
-
 
18
			motsCles = new ArrayList<String>(motsClesTab.length);
-
 
19
			for (int i = 0; i < motsClesTab.length; i++) {
9
	private String motCle;
20
				motsCles.add(motsClesTab[i]);
-
 
21
			}
10
 
22
		} else {
Line 11... Line 23...
11
	public EvenementAjoutMotCleImage(String idImage, String motCle) {
23
			motsCles = new ArrayList<String>(1);
12
		this.idImage = idImage;
24
			motsCles.add(motCle);
13
		this.motCle = motCle;
25
		}
Line 20... Line 32...
20
 
32
 
21
	public String getIdImage() {
33
	public String getIdImage() {
22
		return idImage;
34
		return idImage;
Line 23... Line 35...
23
	}
35
	}
24
	
36
	
25
	public String getMotCle() {
37
	public List<String> getMotsCles() {
Line 26... Line 38...
26
		return motCle;
38
		return motsCles;
27
	}
39
	}
28
 
40