Subversion Repositories eFlore/Archives.cel-v1

Rev

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

Rev 25 Rev 26
Line -... Line 1...
-
 
1
/**
-
 
2
 David Delon david.delon@clapas.net 2007
-
 
3
 
-
 
4
 */
-
 
5
 
-
 
6
/*
-
 
7
 * Cel.java  (Point d'entree de l'application carnet en ligne)
-
 
8
 * 
-
 
9
 * Cas d'utilisation :
-
 
10
 * Initialisation de l'application
-
 
11
 * 
-
 
12
 * 1: Le programme initialise la classe intercesseur (mediator), classe ou sont decrites les actions de l'application.
-
 
13
 * 2: Le programme s'enregistre aupres de la classe intercesseur
-
 
14
 * 3: Le programme recherche les informations de connections (utilisateur ou anonyme)
-
 
15
 * 4: Le programme initialise les differents panneaux composant l'affichage
-
 
16
 * 
-
 
17
 */
-
 
18
 
1
package org.tela_botanica.client;
19
package org.tela_botanica.client;
Line 2... Line 20...
2
 
20
 
3
import com.google.gwt.core.client.EntryPoint;
21
import com.google.gwt.core.client.EntryPoint;
4
import com.google.gwt.user.client.Command;
22
import com.google.gwt.user.client.Command;
Line 15... Line 33...
15
 * Entry point classes define <code>onModuleLoad()</code>.
33
 * Entry point classes define <code>onModuleLoad()</code>.
16
 */
34
 */
17
public class Cel implements EntryPoint,  WindowResizeListener {
35
public class Cel implements EntryPoint,  WindowResizeListener {
Line 18... Line -...
18
 
-
 
19
  
-
 
20
  private TopPanel topPanel = null;
-
 
21
  private CenterPanel centerPanel = null;
-
 
22
  private LeftPanel leftPanel = null;
-
 
23
  private EntryPanel entryPanel = null;
-
 
24
  private ActionPanel actionPanel = null;
-
 
Line -... Line 36...
-
 
36
 
25
  private SearchPanel searchPanel = null;
37
		
-
 
38
	
-
 
39
  private TopPanel topPanel = null;   // Identifiant de connexion et titre
-
 
40
  private CenterPanel centerPanel = null;  // Liste de releves
-
 
41
  private LeftPanel leftPanel = null; // Filtres sur liste de releves
-
 
42
  private EntryPanel entryPanel = null; // Saisie d'un releve
-
 
43
  private ActionPanel actionPanel = null; // Action sur les relevés saisis
-
 
44
  private SearchPanel searchPanel = null; // Recherche dans les relevés saisis
26
  private InfoPopup infoPopup = null;
45
  
Line 27... Line 46...
27
  
46
  private VerticalPanel rightPanel = null; // Container panneau précedents (sauf left et popup)
28
  private VerticalPanel rightPanel = null;
47
  
29
  private Mediator mediator = null;
48
  private Mediator mediator = null; // Intermediaire entre les differents classes
30
 
-
 
Line -... Line 49...
-
 
49
 
Line 31... Line 50...
31
 
50
 
32
  /**
51
  /**
33
   * This is the entry point method.
52
   * Point d'entree : recherche du pres-requis : information de connection.
34
   */
-
 
Line 35... Line 53...
35
  public void onModuleLoad() {
53
   */
Line 36... Line -...
36
 
-
 
Line -... Line 54...
-
 
54
  
-
 
55
  public void onModuleLoad() {
-
 
56
 
-
 
57
	 mediator= new Mediator();
-
 
58
	 mediator.registerCel(this); // Declaration point d'entree aupres de la classe intercesseur
-
 
59
	 mediator.initUser(); // Initialisation environnement utilisateur (Cette methode appelle la methode initAsync() suivante)
Line 37... Line -...
37
 
-
 
Line -... Line 60...
-
 
60
	 
Line -... Line 61...
-
 
61
  }
Line 38... Line -...
38
	 mediator= new Mediator();
-
 
39
	 mediator.registerCel(this);
62
  
Line 40... Line 63...
40
	 mediator.initUser(); // Appelle initAsync suivant
63
  
41
		
-
 
42
	 
-
 
43
  }
-
 
44
  
-
 
Line -... Line 64...
-
 
64
  /**
-
 
65
   *  Fin de l'initialisation
Line 45... Line 66...
45
  public void initAsync() {
66
   * 
46
	  
-
 
Line 47... Line 67...
47
 
67
   */
Line -... Line 68...
-
 
68
  
-
 
69
  public void initAsync() {
-
 
70
	  
48
	  centerPanel = new CenterPanel(mediator);
71
 
49
	 
72
	  centerPanel = new CenterPanel(mediator); // Liste de releves 
50
 
73
	 
51
	  
74
	  topPanel = new TopPanel(mediator); // Identifiant de connection
Line 52... Line 75...
52
	  topPanel = new TopPanel(mediator);
75
	  
53
	  leftPanel = new LeftPanel(mediator);
76
	  leftPanel = new LeftPanel(mediator); // Filte de liste de releves
54
	  
-
 
55
 
77
	  
56
	  entryPanel = new EntryPanel(mediator);
78
 
Line 57... Line -...
57
	  actionPanel = new ActionPanel(mediator);
-
 
58
	  searchPanel = new SearchPanel(mediator);
79
	  entryPanel = new EntryPanel(mediator); // Formulaire de saisie
Line 59... Line -...
59
	  rightPanel = new VerticalPanel();
-
 
60
	  infoPopup = new InfoPopup(mediator);
-
 
61
 
80
	  
62
	  
-
 
Line 63... Line 81...
63
	  // Information haut de page (nom application, connexion ... etc).
81
	  actionPanel = new ActionPanel(mediator); // Action sur releves saisis
64
	  // A regler 
82
	  searchPanel = new SearchPanel(mediator); // Recherche dans releves
65
	  
83
	  
66
	  entryPanel.setStyleName("item-Input");
84
	  rightPanel = new VerticalPanel();  // Container des panneaux precedents
67
	 
-
 
68
	  rightPanel.add(searchPanel);
-
 
69
	  rightPanel.add(entryPanel);
-
 
70
	  rightPanel.add(centerPanel);
-
 
Line 71... Line 85...
71
	  rightPanel.add(actionPanel);
85
	  
Line 72... Line 86...
72
	  
86
	  entryPanel.setStyleName("item-Input");
73
	  
87
 
Line 74... Line 88...
74
	  rightPanel.setWidth("100%");
88
	  
75
	  centerPanel.setWidth("100%");
89
	  // Assemblage des differents panneaux 
Line -... Line 90...
-
 
90
	  
-
 
91
	  rightPanel.add(searchPanel);
76
	  
92
	  rightPanel.add(entryPanel);
Line 77... Line 93...
77
	  entryPanel.setWidth("100%");
93
	  rightPanel.add(centerPanel);
Line 133... Line 149...
133
 
149
 
-
 
150
 
-
 
151
  
-
 
152
 
-
 
153
}
-
 
154