Subversion Repositories eFlore/Applications.del

Rev

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

Rev 1102 Rev 1104
Line 1... Line 1...
1
package org.tela_botanica.del.client.composants.votes.details;
1
package org.tela_botanica.del.client.composants.votes.details;
Line -... Line 2...
-
 
2
 
2
 
3
import java.util.Date;
3
import java.util.Iterator;
4
import java.util.Iterator;
4
import java.util.List;
5
import java.util.List;
Line 5... Line 6...
5
import java.util.Map;
6
import java.util.Map;
Line 33... Line 34...
33
	
34
	
34
	@UiField
35
	@UiField
Line 35... Line 36...
35
	HTMLPanel titre, auteur, aucuneDonnees, detailVotePour, detailVoteContre;
36
	HTMLPanel titre, auteur, aucuneDonnees, detailVotePour, detailVoteContre;
36
	
37
	
Line 37... Line 38...
37
	@UiField
38
	@UiField
38
	Label scorePour, scoreContre;
39
	Label scorePour, scoreContre, date;
Line 39... Line 40...
39
	
40
	
40
	@UiField
41
	@UiField
41
	Panel panneauChargement;
42
	Panel panneauChargement;
-
 
43
 
-
 
44
	public DetailListeVotesDeterminationVue() {
-
 
45
		initWidget(uiBinder.createAndBindUi(this));
-
 
46
	}
-
 
47
	
-
 
48
	public String formaterDate(String dateNonFormatee) {
-
 
49
		
-
 
50
		try {
-
 
51
		DateTimeFormat parseur = DateTimeFormat.getFormat("yyyy-dd-MM HH:mm:ss");
-
 
52
		Date date = parseur.parse(dateNonFormatee);
-
 
53
		
-
 
54
		DateTimeFormat formateur = DateTimeFormat.getFormat("dd/MM/yyyy");
-
 
55
		return formateur.format(date);
Line 42... Line 56...
42
 
56
		} catch (IllegalArgumentException e) {
43
	public DetailListeVotesDeterminationVue() {
57
			return "";
Line 44... Line 58...
44
		initWidget(uiBinder.createAndBindUi(this));
58
		}
45
	}
59
	}
Line 46... Line 60...
46
 
60
 
47
	@Override
61
	@Override
Line -... Line 62...
-
 
62
	public void afficherVotes(PropositionDetermination propositionDetermination) {
-
 
63
		
-
 
64
		HTML htmlTitre = new HTML(propositionDetermination.getEspece());
48
	public void afficherVotes(PropositionDetermination propositionDetermination) {
65
		titre.add(htmlTitre);
Line 49... Line 66...
49
		
66
		
50
		HTML htmlTitre = new HTML(propositionDetermination.getEspece());
67
		HTML htmlAuteur = new HTML(I18n.getVocabulary().proposePar()+propositionDetermination.getAuteur());
51
		titre.add(htmlTitre);
68
		auteur.add(htmlAuteur);