Subversion Repositories eFlore/Applications.del

Rev

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

Rev 232 Rev 500
Line 1... Line 1...
1
package org.tela_botanica.del.client.modeles;
1
package org.tela_botanica.del.client.modeles;
Line 2... Line 2...
2
 
2
 
-
 
3
import java.util.ArrayList;
3
import java.util.ArrayList;
4
import java.util.HashMap;
-
 
5
import java.util.List;
-
 
6
import java.util.Map;
-
 
7
 
Line 4... Line 8...
4
import java.util.List;
8
import com.google.gwt.user.client.Window;
Line 5... Line 9...
5
 
9
 
6
public class Image {
10
public class Image {
Line 41... Line 45...
41
 
45
 
42
	public void setIdImage(String idImage) {
46
	public void setIdImage(String idImage) {
43
		this.idImage = idImage;
47
		this.idImage = idImage;
Line 44... Line 48...
44
	}
48
	}
Line -... Line 49...
-
 
49
 
-
 
50
	private Map<String, List<VoteProtocole>> voteProtocoles = new HashMap<String, List<VoteProtocole>>();
-
 
51
 
-
 
52
	public List<VoteProtocole> getVoteProtocoles(String id_protocole) {
-
 
53
		if(!voteProtocoles.containsKey(""+id_protocole) || voteProtocoles.get(""+id_protocole) == null) {
-
 
54
			voteProtocoles.put(""+id_protocole, new ArrayList<VoteProtocole>());
-
 
55
		}
45
 
56
		return voteProtocoles.get(id_protocole+"");
46
	private List<VoteProtocole> voteProtocoles = new ArrayList<VoteProtocole>();
57
	}
47
 
58
	
48
	public List<VoteProtocole> getVoteProtocoles() {
59
	public List<VoteProtocole> getVotesProtocoles(int id_protocole) {	
49
		return voteProtocoles;
60
		return getVoteProtocoles(id_protocole+"");
50
	}
61
	}
51
 
62
	
Line -... Line 63...
-
 
63
	public void setVoteProtocoles(Map<String, List<VoteProtocole>> voteProtocoles) {
-
 
64
		this.voteProtocoles = voteProtocoles;
-
 
65
	}
-
 
66
 
52
	public void setVoteProtocoles(List<VoteProtocole> voteProtocoles) {
67
	public void setVoteProtocoles(String id_protocole, List<VoteProtocole> voteProtocoles) {
53
		this.voteProtocoles = voteProtocoles;
68
		this.voteProtocoles.put(id_protocole, voteProtocoles);
54
	}
69
	}
Line 55... Line 70...
55
 
70