Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 822 Rev 836
Line 33... Line 33...
33
import org.tela_botanica.client.vues.CollectionVue;
33
import org.tela_botanica.client.vues.CollectionVue;
34
import org.tela_botanica.client.vues.ContenuVue;
34
import org.tela_botanica.client.vues.ContenuVue;
35
import org.tela_botanica.client.vues.EnteteVue;
35
import org.tela_botanica.client.vues.EnteteVue;
36
import org.tela_botanica.client.vues.Formulaire;
36
import org.tela_botanica.client.vues.Formulaire;
37
import org.tela_botanica.client.vues.PersonneForm;
37
import org.tela_botanica.client.vues.PersonneForm;
-
 
38
import org.tela_botanica.client.vues.ProjetVue;
38
import org.tela_botanica.client.vues.PublicationForm;
39
import org.tela_botanica.client.vues.PublicationForm;
39
import org.tela_botanica.client.vues.StructureForm;
40
import org.tela_botanica.client.vues.StructureForm;
40
import org.tela_botanica.client.vues.PersonneVue;
41
import org.tela_botanica.client.vues.PersonneVue;
41
import org.tela_botanica.client.vues.PopupChargement;
42
import org.tela_botanica.client.vues.PopupChargement;
42
import org.tela_botanica.client.vues.PublicationVue;
43
import org.tela_botanica.client.vues.PublicationVue;
Line 191... Line 192...
191
			selectionnerCollection(panneauCentre, null);
192
			selectionnerCollection(panneauCentre, null);
192
		} else if (codeMenuClique.equals(MenuApplicationId.PERSONNE)) { 
193
		} else if (codeMenuClique.equals(MenuApplicationId.PERSONNE)) { 
193
			selectionnerPersonne(panneauCentre, null, null);
194
			selectionnerPersonne(panneauCentre, null, null);
194
		} else if (codeMenuClique.equals(MenuApplicationId.PUBLICATION)) {
195
		} else if (codeMenuClique.equals(MenuApplicationId.PUBLICATION)) {
195
			selectionnerPublication(panneauCentre,null);
196
			selectionnerPublication(panneauCentre,null);
-
 
197
		} else if (codeMenuClique.equals(MenuApplicationId.PROJET)) {
-
 
198
			selectionnerProjets(panneauCentre); 
196
		} else {
199
		} else {
197
			GWT.log("Non implémenté! Menu id : "+codeMenuClique, null);
200
			GWT.log("Non implémenté! Menu id : "+codeMenuClique, null);
198
		}
201
		}
199
		panneauCentre.layout();
202
		panneauCentre.layout();
200
	}
203
	}
201
	
204
 
202
	public void activerChargement(String message) {
205
	public void activerChargement(String message) {
203
		afficherPopinChargement(); 
206
		afficherPopinChargement(); 
204
		panneauSud.showBusy(i18nC.chargement()+" "+message);
207
		panneauSud.showBusy(i18nC.chargement()+" "+message);
205
	}
208
	}
Line 316... Line 319...
316
	//Greg : ajout d'un écouteur pour le changement liste projet
319
	//Greg : ajout d'un écouteur pour le changement liste projet
317
	public void selectionnerProjets(Rafraichissable vueARafraichir)	{
320
	public void selectionnerProjets(Rafraichissable vueARafraichir)	{
318
		modele.selectionnerProjets(vueARafraichir);
321
		modele.selectionnerProjets(vueARafraichir);
319
	}
322
	}
Line 320... Line -...
320
	
-
 
321
	public void afficherListeProjets(ProjetListe projets)	{
-
 
322
		panneauOuest.rafraichir(projets);
-
 
323
	}
-
 
324
	
323
	
325
	public void selectionnerProjetCourant(Projet projetSelectionne) {
324
	public void selectionnerProjetCourant(Projet projetSelectionne) {
326
		Registry.register(RegistreId.PROJET_COURANT, projetSelectionne);
325
		Registry.register(RegistreId.PROJET_COURANT, projetSelectionne);
327
		if (panneauCentre.getContenu() instanceof PersonneVue) {
326
		if (panneauCentre.getContenu() instanceof PersonneVue) {
328
			//modele.selectionnerPersonne(contenuPanneauCentre, null, getProjetId(), null);
327
			//modele.selectionnerPersonne(contenuPanneauCentre, null, getProjetId(), null);
Line 791... Line 790...
791
	}
790
	}
Line 792... Line 791...
792
		
791
		
793
	public void masquerPopinChargement()	{		
792
	public void masquerPopinChargement()	{		
794
		((PopupChargement) Registry.get(RegistreId.POPUP_CHARGEMENT)).hide();
793
		((PopupChargement) Registry.get(RegistreId.POPUP_CHARGEMENT)).hide();
-
 
794
	}
-
 
795
	
-
 
796
	public void afficherListeProjets(ProjetListe projetsACharger)	{
-
 
797
		if (!(panneauCentre.getContenu() instanceof ProjetVue))	{
-
 
798
			panneauCentre.removeAll();
-
 
799
			panneauCentre.add(new ProjetVue(this));
-
 
800
			panneauCentre.setId(ComposantId.PANNEAU_PROJET_LISTE);
-
 
801
			panneauCentre.layout();
-
 
802
		}	
-
 
803
		
-
 
804
		panneauCentre.getContenu().rafraichir(projetsACharger);
-
 
805
	}
-
 
806
 
-
 
807
	
-
 
808
	//+----------------------------------------------------------------------------------------------------------------+
-
 
809
	//												GESTION des projets
-
 
810
	//+----------------------------------------------------------------------------------------------------------------+
-
 
811
	public void clicListeProjet(Projet projet) {
-
 
812
		panneauCentre.getContenu().rafraichir(projet);
-
 
813
	}
-
 
814
 
-
 
815
	public void clicSupprimerProjet(List<Projet> selectedItems) {
-
 
816
		// TODO Auto-generated method stub
-
 
817
		
-
 
818
	}
-
 
819
 
-
 
820
	public void clicModifierProjet(List<Projet> selectedItems) {
-
 
821
		// TODO Auto-generated method stub
-
 
822
		
-
 
823
	}
-
 
824
 
-
 
825
	public void clicAjouterProjet() {
-
 
826
		// TODO Auto-generated method stub
-
 
827
		
Line 795... Line 828...
795
	}
828
	}
796
 
829