Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 1488 Rev 2081
Line 11... Line 11...
11
 * 2: Le programme arme les actions liees a la connection ou a la deconnection
11
 * 2: Le programme arme les actions liees a la connection ou a la deconnection
12
 *    - Connection : affichage de la boite de connexion
12
 *    - Connection : affichage de la boite de connexion
13
 *    - Deconnexion : appel du service de deconnexion, et appel de la re-initialisation de l'affichage pour le nouvel identifiant utilisateur obtenu (identifiant  de session)
13
 *    - Deconnexion : appel du service de deconnexion, et appel de la re-initialisation de l'affichage pour le nouvel identifiant utilisateur obtenu (identifiant  de session)
14
 */
14
 */
Line 15... Line -...
15
 
-
 
16
 
15
 
Line 17... Line -...
17
package org.tela_botanica.client.vues;
-
 
18
 
-
 
19
 
16
package org.tela_botanica.client.vues;
20
 
17
 
Line -... Line 18...
-
 
18
import org.tela_botanica.client.CarnetEnLigneMediateur;
21
import org.tela_botanica.client.CarnetEnLigneMediateur;
19
import org.tela_botanica.client.modeles.objets.Configuration;
22
import org.tela_botanica.client.modeles.objets.Configuration;
-
 
23
 
20
 
24
import com.google.gwt.user.client.Window;
21
import com.google.gwt.http.client.URL;
25
 
22
import com.google.gwt.user.client.Window;
26
import com.gwtext.client.core.EventCallback;
23
import com.gwtext.client.core.EventCallback;
27
import com.gwtext.client.core.EventObject;
24
import com.gwtext.client.core.EventObject;
28
import com.gwtext.client.core.Ext;
25
import com.gwtext.client.core.Ext;
29
import com.gwtext.client.core.ExtElement;
26
import com.gwtext.client.core.ExtElement;
Line 30... Line -...
30
import com.gwtext.client.widgets.Container;
-
 
31
import com.gwtext.client.widgets.Panel;
-
 
32
import com.gwtext.client.widgets.event.ContainerListenerAdapter;
27
import com.gwtext.client.widgets.Container;
33
 
28
import com.gwtext.client.widgets.Panel;
34
 
29
import com.gwtext.client.widgets.event.ContainerListenerAdapter;
35
 
30
 
36
/**
31
/**
37
 * Un indicateur d'etat de connexion
32
 * Un indicateur d'etat de connexion
Line 38... Line -...
38
 * 
-
 
39
 * @author David Delon
-
 
40
 *
33
 * 
Line 41... Line -...
41
 */
-
 
42
 
34
 * @author David Delon
43
 
35
 *
44
 
36
 */
45
public class EtatConnexionVue  extends Panel  {
37
 
Line 55... Line 47...
55
   * 
47
   * 
56
   */
48
   */
Line 57... Line 49...
57
  
49
  
Line -... Line 50...
-
 
50
  private String labelEtatConnexion = null;
-
 
51
 
-
 
52
  /**
-
 
53
   * Ouh c'est pas beau, ça ! Mais avec Google Web Toolshit, ça
58
  private String labelEtatConnexion = null;
54
   * marche toujours mieux que quand on fait des trucs beaux :-)
-
 
55
   */
-
 
56
  private String liens = "<div id=\"liensExt\">"
-
 
57
		  + "<a id=\"lienRemarques\" title=\"Adressez-nous vos remarques ou signalez-nous un problème\""
-
 
58
		  + 	" href=\"" + Configuration.getRemarquesBaseUrl() + "?email=" + Configuration.getEmailContact()
-
 
59
		  + 	"&pageSource=" + URL.encodeQueryString(Window.Location.getHref()) + "\""
-
 
60
		  + " onClick=\"javascript:window.open(this.getAttribute('href'), 'Tela Botanica - Remarques', config='height=700, width=640, scrollbars=yes, resizable=yes'); return false;\""
-
 
61
		  + " target=\"_blank\""
-
 
62
		  + ">Remarques</a>"
Line 59... Line 63...
59
  
63
		  + "<a href=\"#\" id=\"lienAide\">Aide</a>"
60
  private String liens = "<div id=\"liensExt\"><a href=\"#\" id=\"lienAide\">Aide</a></div>" ;
64
		  + "</div>" ;
61
  
65
  
62
  /**
66
  /**
63
   * Booleen indiquant si utilisateur connecte 
-
 
64
   * 
-
 
65
   */
67
   * Booleen indiquant si utilisateur est connecte 
Line 66... Line 68...
66
  
68
   * 
Line 67... Line 69...
67
  
69
   */
Line 121... Line 123...
121
				}
123
				}
122
			});
124
			});
123
		}
125
		}
124
	}
126
	}
Line 125... Line -...
125
 
-
 
126
		
-
 
127
 
-
 
128
 
127
 
129
/**
128
/**
130
 * Affichage de l'etat de connexion
129
 * Affichage de l'etat de connexion
131
 * @param text
130
 * @param text
132
 * @param connecte
131
 * @param connecte
Line 139... Line 138...
139
		
138
		
140
		
139
		
Line 141... Line 140...
141
		labelEtatConnexion += liens ;
140
		labelEtatConnexion += liens ;
142
		setHtml(labelEtatConnexion);
141
		setHtml(labelEtatConnexion);
143
 
142
 
144
		ExtElement lienDeco = Ext.get("etatConnexion");
143
		ExtElement lienDeco = Ext.get("lienDeconnexion");
Line 145... Line 144...
145
		if(lienDeco != null) 
144
		if(lienDeco != null)