Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 61 Rev 64
Line 28... Line 28...
28
 
28
 
Line 29... Line 29...
29
public class EntetePanneauVue extends LayoutContainer implements Rafraichissable {
29
public class EntetePanneauVue extends LayoutContainer implements Rafraichissable {
30
	
30
	
31
	private ButtonBar barreBoutons = null;
-
 
Line 32... Line 31...
32
	private Button identificationBouton = null;
31
	private ButtonBar barreBoutons = null;
33
	private Button deconnexionBouton = null;
32
	private Button identificationBouton = null;
34
	
33
	
Line 75... Line 74...
75
		aideBouton.setId(ComposantId.BTN_AIDE);
74
		aideBouton.setId(ComposantId.BTN_AIDE);
76
		barreBoutons.add(aideBouton);
75
		barreBoutons.add(aideBouton);
77
		identificationBouton = new Button("Identifiez vous...", boutonEcouteur);
76
		identificationBouton = new Button("Identifiez vous...", boutonEcouteur);
78
		identificationBouton.setId(ComposantId.BTN_IDENTIFICATION);
77
		identificationBouton.setId(ComposantId.BTN_IDENTIFICATION);
79
		barreBoutons.add(identificationBouton);
78
		barreBoutons.add(identificationBouton);
80
		deconnexionBouton = new Button("Deconnexion", boutonEcouteur);
-
 
81
		deconnexionBouton.setId(ComposantId.BTN_DECONNEXION);
-
 
82
		deconnexionBouton.hide();
-
 
83
		barreBoutons.add(deconnexionBouton);
-
 
Line 84... Line 79...
84
		
79
		
85
		SplitButton applisBouton = new SplitButton("Changez d'application...");
80
		SplitButton applisBouton = new SplitButton("Changez d'application...");
86
		applisBouton.setId(ComposantId.BTN_APPLIS);
81
		applisBouton.setId(ComposantId.BTN_APPLIS);
Line 118... Line 113...
118
		add(barreBoutons, new RowData(.5, 50)); 
113
		add(barreBoutons, new RowData(.5, 50)); 
119
	}
114
	}
Line 120... Line 115...
120
 
115
 
121
	public void rafraichir(Object nouvelleDonnees) {
116
	public void rafraichir(Object nouvelleDonnees) {
-
 
117
		if (nouvelleDonnees instanceof Utilisateur) {
122
		if (nouvelleDonnees instanceof Utilisateur) {
118
			((Utilisateur) Registry.get(RegistreId.UTILISATEUR)).setIdentifie(false);
123
			identificationBouton.hide();
119
			identificationBouton.setText("Deconnexion");
124
			deconnexionBouton.show();
120
			identificationBouton.setId(ComposantId.BTN_DECONNEXION);
Line 125... Line 121...
125
		}
121
		}
126
		
122
		
127
	}
123
	}