Subversion Repositories eFlore/Archives.cel-v1

Rev

Rev 25 | Go to most recent revision | Show entire file | Ignore 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 14... Line 32...
14
/**
32
/**
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 -... Line 36...
-
 
36
 
-
 
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
Line 18... Line -...
18
 
-
 
19
  
44
  private SearchPanel searchPanel = null; // Recherche dans les relevés saisis
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 25... Line -...
25
  private SearchPanel searchPanel = null;
-
 
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
-
 
49
 
30
 
50
 
Line 31... Line -...
31
 
-
 
32
  /**
51
  /**
33
   * This is the entry point method.
52
   * Point d'entree : recherche du pres-requis : information de connection.
34
   */
53
   */
35
  public void onModuleLoad() {
-
 
Line 36... Line 54...
36
 
54
  
Line -... Line 55...
-
 
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)
-
 
60
	 
37
 
61
  }
Line 38... Line 62...
38
	 mediator= new Mediator();
62
  
Line 39... Line -...
39
	 mediator.registerCel(this);
-
 
-
 
63
  
Line 40... Line -...
40
	 mediator.initUser(); // Appelle initAsync suivant
-
 
41
		
64
  /**
Line 42... Line 65...
42
	 
65
   *  Fin de l'initialisation
-
 
66
   * 
43
  }
67
   */
44
  
68
  
45
  public void initAsync() {
-
 
46
	  
-
 
47
 
-
 
Line 48... Line 69...
48
	  centerPanel = new CenterPanel(mediator);
69
  public void initAsync() {
49
	 
-
 
Line 50... Line 70...
50
 
70
	  
-
 
71
 
51
	  
72
	  centerPanel = new CenterPanel(mediator); // Liste de releves 
-
 
73
	 
-
 
74
	  topPanel = new TopPanel(mediator); // Identifiant de connection
52
	  topPanel = new TopPanel(mediator);
75
	  
53
	  leftPanel = new LeftPanel(mediator);
76
	  leftPanel = new LeftPanel(mediator); // Filte de liste de releves
54
	  
77
	  
55
 
78
 
Line 56... Line 79...
56
	  entryPanel = new EntryPanel(mediator);
79
	  entryPanel = new EntryPanel(mediator); // Formulaire de saisie
57
	  actionPanel = new ActionPanel(mediator);
80
	  
58
	  searchPanel = new SearchPanel(mediator);
-
 
59
	  rightPanel = new VerticalPanel();
81
	  actionPanel = new ActionPanel(mediator); // Action sur releves saisis
60
	  infoPopup = new InfoPopup(mediator);
82
	  searchPanel = new SearchPanel(mediator); // Recherche dans releves
Line 61... Line -...
61
 
-
 
62
	  
83
	  
Line 63... Line -...
63
	  // Information haut de page (nom application, connexion ... etc).
-
 
64
	  // A regler 
-
 
65
	  
84
	  rightPanel = new VerticalPanel();  // Container des panneaux precedents
66
	  entryPanel.setStyleName("item-Input");
-
 
Line 67... Line 85...
67
	 
85
	  
68
	  rightPanel.add(searchPanel);
86
	  entryPanel.setStyleName("item-Input");
69
	  rightPanel.add(entryPanel);
87
 
70
	  rightPanel.add(centerPanel);
88
	  
71
	  rightPanel.add(actionPanel);
-
 
72
	  
-
 
73
	  
-
 
74
	  rightPanel.setWidth("100%");
-
 
Line 75... Line 89...
75
	  centerPanel.setWidth("100%");
89
	  // Assemblage des differents panneaux 
Line 76... Line 90...
76
	  
90
	  
77
	  entryPanel.setWidth("100%");
91
	  rightPanel.add(searchPanel);
Line 78... Line 92...
78
	  topPanel.setWidth("100%");
92
	  rightPanel.add(entryPanel);
79
 
93
	  rightPanel.add(centerPanel);
Line -... Line 94...
-
 
94
	  rightPanel.add(actionPanel);
-
 
95
	  
80
 
96
	  
Line 81... Line 97...
81
	  rightPanel.setSpacing(2);
97
	  rightPanel.setWidth("100%");
Line 133... Line 149...
133
 
149
 
-
 
150
 
-
 
151
  
-
 
152
 
-
 
153
}
-
 
154