Subversion Repositories eFlore/Archives.cel-v1

Rev

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

Rev 12 Rev 13
Line 1... Line 1...
1
package org.tela_botanica.client;
1
package org.tela_botanica.client;
Line 2... Line 2...
2
 
2
 
-
 
3
import com.google.gwt.core.client.EntryPoint;
-
 
4
import com.google.gwt.user.client.Command;
3
import com.google.gwt.core.client.EntryPoint;
5
import com.google.gwt.user.client.DeferredCommand;
-
 
6
import com.google.gwt.user.client.Window;
4
import com.google.gwt.user.client.Window;
7
import com.google.gwt.user.client.WindowResizeListener;
5
import com.google.gwt.user.client.ui.DockPanel;
8
import com.google.gwt.user.client.ui.DockPanel;
-
 
9
import com.google.gwt.user.client.ui.RootPanel;
Line 6... Line 10...
6
import com.google.gwt.user.client.ui.RootPanel;
10
import com.google.gwt.user.client.ui.VerticalPanel;
7
 
11
 
8
 
12
 
9
 
13
 
Line 10... Line 14...
10
/**
14
/**
11
 * Entry point classes define <code>onModuleLoad()</code>.
15
 * Entry point classes define <code>onModuleLoad()</code>.
12
 */
16
 */
13
public class Cel implements EntryPoint {
17
public class Cel implements EntryPoint,  WindowResizeListener {
-
 
18
 
-
 
19
  
Line -... Line 20...
-
 
20
  private TopPanel topPanel = null;
14
 
21
  private CenterPanel centerPanel = null;
Line 15... Line 22...
15
  
22
  private LeftPanel leftPanel = null;
16
  private TopPanel topPanel = null;
23
  private EntryPanel entryPanel = null;
Line 36... Line 43...
36
  
43
  
Line 37... Line 44...
37
  public void initAsync() {
44
  public void initAsync() {
-
 
45
	  
Line 38... Line 46...
38
	  
46
 
39
 
47
	  centerPanel = new CenterPanel(mediator);
-
 
48
	 
Line 40... Line 49...
40
	  centerPanel = new CenterPanel(mediator);
49
	  
-
 
50
	  topPanel = new TopPanel(mediator);
-
 
51
	  leftPanel = new LeftPanel(mediator);
-
 
52
	  
Line 41... Line 53...
41
	  
53
 
42
	  topPanel = new TopPanel(mediator);
54
	  entryPanel = new EntryPanel(mediator);
Line 43... Line 55...
43
	  leftPanel = new LeftPanel(mediator);
55
	  actionPanel = new ActionPanel(mediator);
-
 
56
	  searchPanel = new SearchPanel(mediator);
-
 
57
	  rightPanel = new VerticalPanel();
-
 
58
	  
-
 
59
	  // Information haut de page (nom application, connexion ... etc).
-
 
60
	  // A regler 
-
 
61
	  
Line -... Line 62...
-
 
62
	  entryPanel.setStyleName("item-Input");
-
 
63
	 
-
 
64
	  rightPanel.add(searchPanel);
-
 
65
	  rightPanel.add(actionPanel);
-
 
66
	  rightPanel.add(centerPanel);
-
 
67
	  rightPanel.add(entryPanel);
-
 
68
	  
Line -... Line 69...
-
 
69
	  
-
 
70
	  
Line 44... Line 71...
44
 
71
	  rightPanel.setWidth("100%");
45
	  entryPanel = new EntryPanel(mediator);
72
	  centerPanel.setWidth("100%");
Line 46... Line 73...
46
	  
73
	  
47
	  // Information haut de page (nom application, connexion ... etc).
74
	  entryPanel.setWidth("100%");
48
	  // A regler 
75
	  topPanel.setWidth("100%");
49
	  
76
 
50
	  entryPanel.setStyleName("item-Input");
77
 
Line 51... Line -...
51
	  
-
 
52
 
78
	  rightPanel.setSpacing(2);
53
	  
79
	  
Line 54... Line 80...
54
	  // DockPanel permet d'arranger plusieurs panneaux au coins cardinaux, le panneau central remplissant
80
	  
Line 55... Line 81...
55
	  // l'espace laissé.
81
	  // DockPanel permet d'arranger plusieurs panneaux au coins cardinaux, le panneau central remplissant
56
	  
82
	  // l'espace laissé.
Line 57... Line 83...
57
	  
83
	  
58
	  DockPanel outer = new DockPanel();
84
	  
Line 59... Line 85...
59
	  outer.add(topPanel, DockPanel.NORTH);
85
	  DockPanel outer = new DockPanel();
Line 60... Line -...
60
	  outer.add(centerPanel, DockPanel.CENTER);
-
 
Line 61... Line 86...
61
	  outer.add(leftPanel, DockPanel.WEST);
86
	  outer.add(topPanel, DockPanel.NORTH);
Line 62... Line 87...
62
//	  outer.add(bottomPanel, DockPanel.SOUTH);
87
	  outer.add(rightPanel, DockPanel.CENTER);
-
 
88
	  outer.add(leftPanel, DockPanel.WEST);
-
 
89
//	  outer.add(bottomPanel, DockPanel.SOUTH);
-
 
90
	  
-
 
91
	  // LeftPanel : 
-
 
92
	  // Pour l'instant : relevés.
-
 
93
	  
-
 
94
	  outer.setWidth("100%");
-
 
95
 
-
 
96
	  outer.setSpacing(4);
Line 63... Line 97...
63
	  
97
	  outer.setCellWidth(rightPanel, "100%");
Line -... Line 98...
-
 
98
	 
-
 
99
//	  Window.enableScrolling(false);
-
 
100
	  Window.setMargin("0px");
-
 
101
 
-
 
102
	  mediator.onInit();
-
 
103
	  
-
 
104
	  
-
 
105
	  RootPanel.get().add(outer);
-
 
106
 
-
 
107
 
-
 
108
	    // Call the window resized handler to get the initial sizes setup. Doing
Line 64... Line 109...
64
	  centerPanel.setWidth("100%");
109
	    // this in a deferred command causes it to occur after all widgets' sizes