Subversion Repositories eFlore/Applications.del

Rev

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

Rev 1531 Rev 1667
Line 23... Line 23...
23
 
23
 
24
	@UiField
24
	@UiField
Line 25... Line 25...
25
	Label nomRetenu, famille, auteur, localite, motsClefs, numNomenclatural, nomCommun, commentaire, milieu, station, referentiel;
25
	Label nomRetenu, famille, auteur, localite, motsClefs, numNomenclatural, nomCommun, commentaire, milieu, station, referentiel;
-
 
26
	
-
 
27
	@UiField
-
 
28
	Anchor courrielAuteur;
26
	
29
	
Line 27... Line 30...
27
	@UiField
30
	@UiField
28
	HTML lieuDit;
31
	HTML lieuDit;
Line -... Line 32...
-
 
32
	
29
	
33
	@UiField
30
	@UiField
34
	InlineLabel dateReleve, dateTransmission;
31
	InlineLabel dateReleve, dateTransmission;
35
 
Line 32... Line 36...
32
 
36
 
Line 43... Line 47...
43
	}
47
	}
Line 44... Line 48...
44
 
48
 
45
	public HasText getAuteur() {
49
	public HasText getAuteur() {
46
		return this.auteur;
50
		return this.auteur;
-
 
51
	}
-
 
52
	
-
 
53
	public HasText getCourrielAuteur() {
-
 
54
		return courrielAuteur;
-
 
55
	}
-
 
56
 
-
 
57
	public void setCourrielAuteurHref(String courriel) {
-
 
58
		this.courrielAuteur.setHref("mailto:"+courriel);
Line 47... Line 59...
47
	}
59
	}
48
 
60
 
49
	public HasText getDateTransmission() {
61
	public HasText getDateTransmission() {
Line 92... Line 104...
92
	}
104
	}
Line 93... Line 105...
93
 
105
 
94
	public HasClickHandlers getLienAuteur() {
106
	public HasClickHandlers getLienAuteur() {
95
		return this.auteur;
107
		return this.auteur;
-
 
108
	}
-
 
109
	
-
 
110
	public HasClickHandlers getLienCourrielAuteur() {
-
 
111
		return this.courrielAuteur;
Line 96... Line 112...
96
	}
112
	}
97
 
113
 
98
	public HasClickHandlers getLienDateTransmission() {
114
	public HasClickHandlers getLienDateTransmission() {
Line 127... Line 143...
127
		return commentaire;
143
		return commentaire;
128
	}
144
	}
Line 129... Line 145...
129
 
145
 
130
	@Override
146
	@Override
131
	public void masquerChampsVides() {
147
	public void masquerChampsVides() {
132
		HasText[] champs = {nomRetenu, nomCommun, famille, localite, auteur,  motsClefs,  commentaire, milieu, lieuDit, dateReleve, dateTransmission};
148
		HasText[] champs = {nomRetenu, nomCommun, famille, localite, auteur, courrielAuteur, motsClefs, commentaire, lieuDit, station, milieu, dateReleve, dateTransmission};
133
		for (int i = 0; i < champs.length; i ++) {
149
		for (int i = 0; i < champs.length; i ++) {
134
			HasText champ = champs[i];
150
			HasText champ = champs[i];
135
			if ("".equals(champ.getText())) {
151
			if ("".equals(champ.getText())) {
136
				Widget widget = (Widget) champ;
152
				Widget widget = (Widget) champ;
Line 172... Line 188...
172
 
188
 
173
	@Override
189
	@Override
174
	public HasText getReferentiel() {
190
	public HasText getReferentiel() {
175
		return referentiel;
191
		return referentiel;
-
 
192
	}
-
 
193
	
-
 
194
	public void afficherCourrielAuteur() {
-
 
195
		courrielAuteur.getParent().setVisible(true);
-
 
196
		courrielAuteur.setVisible(true);
-
 
197
	}
-
 
198
	public void cacherCourrielAuteur() {
-
 
199
		courrielAuteur.getParent().setVisible(false);
-
 
200
		courrielAuteur.setVisible(false);
176
	}
201
	}