Subversion Repositories eFlore/Applications.del

Rev

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

Rev 1206 Rev 1234
Line 1... Line 1...
1
package org.tela_botanica.del.client.vues.identiplante.moteur;
1
package org.tela_botanica.del.client.vues.identiplante.moteur;
Line -... Line 2...
-
 
2
 
2
 
3
import org.tela_botanica.del.client.cache.CacheClient;
3
import org.tela_botanica.del.client.composants.partageurl.PartageUrlPresenteur;
4
import org.tela_botanica.del.client.composants.partageurl.PartageUrlPresenteur;
4
import org.tela_botanica.del.client.composants.partageurl.PartageUrlVue;
5
import org.tela_botanica.del.client.composants.partageurl.PartageUrlVue;
Line 5... Line 6...
5
import org.tela_botanica.del.client.i18n.I18n;
6
import org.tela_botanica.del.client.i18n.I18n;
Line 26... Line 27...
26
	private static Binder binder = GWT.create(Binder.class);
27
	private static Binder binder = GWT.create(Binder.class);
Line 27... Line 28...
27
 
28
 
28
	@UiField
29
	@UiField
Line 29... Line -...
29
	Panel zoneRecherche, zoneResultats;
-
 
30
 
30
	Panel zoneRecherche, zoneResultats;
31
 
31
 
Line 32... Line 32...
32
	@UiField
32
	@UiField
33
	CheckBox radioTout, radioDeterminer, radioDiscussion;
33
	Label ongletTout, ongletADeterminer, ongletEnDiscussion;
34
 
34
 
Line 35... Line 35...
35
	public HasWidgets getZoneRecherche() {
35
	public HasWidgets getZoneRecherche() {
36
		return zoneRecherche;
36
		return zoneRecherche;
37
	}
37
	}
-
 
38
	
38
	
39
	// Constructeur de la vue
Line 39... Line 40...
39
	// Constructeur de la vue
40
	public MoteurIdentiplanteVue() {
40
	public MoteurIdentiplanteVue() {
41
		initWidget(binder.createAndBindUi(this));
41
		initWidget(binder.createAndBindUi(this));
42
		mettreAJourOngletEnFonctionDuCache();
Line 42... Line -...
42
	}
-
 
43
 
43
	}
44
	public Panel getZoneResultats() {
44
 
45
		return zoneResultats;
45
	public Panel getZoneResultats() {
46
	}
46
		return zoneResultats;
Line -... Line 47...
-
 
47
	}
47
	
48
	
48
	public String getValeurRadioStatut() {
49
	@Override
49
		String valeurStatut = "";
50
	public HasClickHandlers getOngletEnDiscussion() {
50
		if (radioDeterminer.getValue()) {
51
		return ongletEnDiscussion;
-
 
52
	}
-
 
53
 
51
			valeurStatut += radioDeterminer.getFormValue() + ";";
54
	@Override
52
		} 
-
 
53
 
55
	public HasClickHandlers getOngletADeterminer() {
Line 54... Line 56...
54
		if (radioDiscussion.getValue()) {
56
		return ongletADeterminer;
55
			valeurStatut += radioDiscussion.getFormValue() + ";";
57
	}
56
		}
58
 
-
 
59
	@Override	
57
		
60
	public HasClickHandlers getOngletTout() {
Line 58... Line 61...
58
		return valeurStatut;
61
		return ongletTout;
59
		
62
	}
60
	}
63
 
-
 
64
	@Override
61
 
65
	public void setOngletADeterminerActif() {
Line 62... Line 66...
62
	@Override
66
		nettoyerOngletsActifs();
-
 
67
		ongletADeterminer.addStyleName("onglet-actif");
-
 
68
	}
-
 
69
 
-
 
70
	@Override
-
 
71
	public void setOngletToutActif() {
63
	public HasClickHandlers getRadioADeterminer() {
72
		nettoyerOngletsActifs();
-
 
73
		ongletTout.addStyleName("onglet-actif");
-
 
74
	}
-
 
75
 
-
 
76
	@Override
-
 
77
	public void setOngletEnDiscussionActif() {
-
 
78
		nettoyerOngletsActifs();
-
 
79
		ongletEnDiscussion.addStyleName("onglet-actif");		
-
 
80
	}
-
 
81
	
-
 
82
	public void nettoyerOngletsActifs() {
64
		return radioDeterminer;
83
		ongletTout.removeStyleName("onglet-actif");
-
 
84
		ongletADeterminer.removeStyleName("onglet-actif");
-
 
85
		ongletEnDiscussion.removeStyleName("onglet-actif");
-
 
86
	}
65
	}
87
	
Line 66... Line 88...
66
 
88
	public void mettreAJourOngletEnFonctionDuCache() {