| Line 51... |
Line 51... |
| 51 |
import org.tela_botanica.client.vues.ContenuVue;
|
51 |
import org.tela_botanica.client.vues.ContenuVue;
|
| 52 |
import org.tela_botanica.client.vues.EnteteVue;
|
52 |
import org.tela_botanica.client.vues.EnteteVue;
|
| 53 |
import org.tela_botanica.client.vues.FenetreForm;
|
53 |
import org.tela_botanica.client.vues.FenetreForm;
|
| 54 |
import org.tela_botanica.client.vues.Formulaire;
|
54 |
import org.tela_botanica.client.vues.Formulaire;
|
| 55 |
import org.tela_botanica.client.vues.FenetreJournal;
|
55 |
import org.tela_botanica.client.vues.FenetreJournal;
|
| 56 |
import org.tela_botanica.client.vues.NavigationVue;
|
56 |
import org.tela_botanica.client.vues.MenuHorizontalVue;
|
| 57 |
import org.tela_botanica.client.vues.PopupChargement;
|
57 |
import org.tela_botanica.client.vues.PopupChargement;
|
| 58 |
import org.tela_botanica.client.vues.StatutVue;
|
58 |
import org.tela_botanica.client.vues.StatutVue;
|
| 59 |
import org.tela_botanica.client.vues.accueil.AccueilVue;
|
59 |
import org.tela_botanica.client.vues.accueil.AccueilVue;
|
| 60 |
import org.tela_botanica.client.vues.collection.CollectionForm;
|
60 |
import org.tela_botanica.client.vues.collection.CollectionForm;
|
| 61 |
import org.tela_botanica.client.vues.collection.CollectionListeVue;
|
61 |
import org.tela_botanica.client.vues.collection.CollectionListeVue;
|
| Line 69... |
Line 69... |
| 69 |
import org.tela_botanica.client.vues.structure.StructureForm;
|
69 |
import org.tela_botanica.client.vues.structure.StructureForm;
|
| 70 |
import org.tela_botanica.client.vues.structure.StructureVue;
|
70 |
import org.tela_botanica.client.vues.structure.StructureVue;
|
| Line 71... |
Line 71... |
| 71 |
|
71 |
|
| 72 |
import com.extjs.gxt.ui.client.Registry;
|
72 |
import com.extjs.gxt.ui.client.Registry;
|
| - |
|
73 |
import com.extjs.gxt.ui.client.Style.LayoutRegion;
|
| 73 |
import com.extjs.gxt.ui.client.Style.LayoutRegion;
|
74 |
import com.extjs.gxt.ui.client.Style.Orientation;
|
| 74 |
import com.extjs.gxt.ui.client.event.Listener;
|
75 |
import com.extjs.gxt.ui.client.event.Listener;
|
| 75 |
import com.extjs.gxt.ui.client.event.MessageBoxEvent;
|
76 |
import com.extjs.gxt.ui.client.event.MessageBoxEvent;
|
| - |
|
77 |
import com.extjs.gxt.ui.client.util.Margins;
|
| 76 |
import com.extjs.gxt.ui.client.util.Margins;
|
78 |
import com.extjs.gxt.ui.client.widget.ContentPanel;
|
| 77 |
import com.extjs.gxt.ui.client.widget.Dialog;
|
79 |
import com.extjs.gxt.ui.client.widget.Dialog;
|
| 78 |
import com.extjs.gxt.ui.client.widget.MessageBox;
|
80 |
import com.extjs.gxt.ui.client.widget.MessageBox;
|
| 79 |
import com.extjs.gxt.ui.client.widget.Viewport;
|
81 |
import com.extjs.gxt.ui.client.widget.Viewport;
|
| 80 |
import com.extjs.gxt.ui.client.widget.button.Button;
|
82 |
import com.extjs.gxt.ui.client.widget.button.Button;
|
| 81 |
import com.extjs.gxt.ui.client.widget.layout.BorderLayout;
|
83 |
import com.extjs.gxt.ui.client.widget.layout.BorderLayout;
|
| - |
|
84 |
import com.extjs.gxt.ui.client.widget.layout.BorderLayoutData;
|
| - |
|
85 |
import com.extjs.gxt.ui.client.widget.layout.LayoutData;
|
| - |
|
86 |
import com.extjs.gxt.ui.client.widget.layout.RowData;
|
| 82 |
import com.extjs.gxt.ui.client.widget.layout.BorderLayoutData;
|
87 |
import com.extjs.gxt.ui.client.widget.layout.RowLayout;
|
| 83 |
import com.google.gwt.core.client.GWT;
|
88 |
import com.google.gwt.core.client.GWT;
|
| 84 |
import com.google.gwt.event.logical.shared.ValueChangeEvent;
|
89 |
import com.google.gwt.event.logical.shared.ValueChangeEvent;
|
| 85 |
import com.google.gwt.event.logical.shared.ValueChangeHandler;
|
90 |
import com.google.gwt.event.logical.shared.ValueChangeHandler;
|
| 86 |
import com.google.gwt.http.client.URL;
|
91 |
import com.google.gwt.http.client.URL;
|
| Line 99... |
Line 104... |
| 99 |
public static final boolean DEBUG_CHARGEMENT = false;
|
104 |
public static final boolean DEBUG_CHARGEMENT = false;
|
| Line 100... |
Line 105... |
| 100 |
|
105 |
|
| Line 101... |
Line 106... |
| 101 |
private String requeteUrl = null;
|
106 |
private String requeteUrl = null;
|
| 102 |
|
- |
|
| 103 |
private EnteteVue panneauNord = null;
|
107 |
|
| 104 |
private NavigationVue panneauOuest = null;
|
108 |
private EnteteVue panneauNord = null;
|
| 105 |
private ContenuVue panneauCentre = null;
|
109 |
private ContenuVue panneauCentre = null;
|
| - |
|
110 |
private StatutVue panneauSud = null;
|
| Line 106... |
Line 111... |
| 106 |
private StatutVue panneauSud = null;
|
111 |
private FenetreJournal fenetreJournal = null;
|
| Line 107... |
Line 112... |
| 107 |
private FenetreJournal fenetreJournal = null;
|
112 |
private MenuHorizontalVue panneauNavigation = null;
|
| 108 |
|
113 |
|
| Line 128... |
Line 133... |
| 128 |
sequenceur = new Sequenceur();
|
133 |
sequenceur = new Sequenceur();
|
| Line 129... |
Line 134... |
| 129 |
|
134 |
|
| 130 |
// Création du Viewport qui contient la disposition globale de l'application
|
135 |
// Création du Viewport qui contient la disposition globale de l'application
|
| 131 |
viewport = new Viewport();
|
136 |
viewport = new Viewport();
|
| - |
|
137 |
viewport.setLayout(new BorderLayout());
|
| - |
|
138 |
|
| Line 132... |
Line 139... |
| 132 |
viewport.setLayout(new BorderLayout());
|
139 |
panneauNavigation = new MenuHorizontalVue(this);
|
| 133 |
|
140 |
|
| 134 |
// Création des différents panneaux
|
- |
|
| 135 |
creerPanneauNord();
|
141 |
// Création des différents panneaux
|
| 136 |
creerPanneauOuest();
|
142 |
creerPanneauNord();
|
| 137 |
creerPanneauCentral();
|
143 |
creerPanneauCentral();
|
| Line 138... |
Line 144... |
| 138 |
creerPanneauSud();
|
144 |
creerPanneauSud();
|
| Line 203... |
Line 209... |
| 203 |
regionNord.setSplit(false);
|
209 |
regionNord.setSplit(false);
|
| 204 |
regionNord.setMargins(new Margins(5, 5, 0, 5));
|
210 |
regionNord.setMargins(new Margins(5, 5, 0, 5));
|
| Line 205... |
Line 211... |
| 205 |
|
211 |
|
| 206 |
viewport.add(panneauNord, regionNord);
|
212 |
viewport.add(panneauNord, regionNord);
|
| 207 |
}
|
- |
|
| 208 |
|
- |
|
| 209 |
private void creerPanneauOuest() {
|
- |
|
| 210 |
panneauOuest = new NavigationVue(this);
|
- |
|
| 211 |
|
- |
|
| 212 |
BorderLayoutData regionOuest = new BorderLayoutData(LayoutRegion.WEST, 241);
|
- |
|
| 213 |
regionOuest.setSplit(true);
|
- |
|
| 214 |
regionOuest.setCollapsible(true);
|
- |
|
| 215 |
regionOuest.setMargins(new Margins(5));
|
- |
|
| 216 |
|
- |
|
| 217 |
viewport.add(panneauOuest, regionOuest);
|
- |
|
| Line 218... |
Line 213... |
| 218 |
}
|
213 |
}
|
| - |
|
214 |
|
| - |
|
215 |
private void creerPanneauCentral() {
|
| - |
|
216 |
|
| - |
|
217 |
ContentPanel panneauIntermediaire = new ContentPanel();
|
| - |
|
218 |
panneauIntermediaire.setLayout(new RowLayout(Orientation.VERTICAL));
|
| 219 |
|
219 |
panneauIntermediaire.setHeaderVisible(false);
|
| - |
|
220 |
|
| Line 220... |
Line 221... |
| 220 |
private void creerPanneauCentral() {
|
221 |
panneauCentre = new ContenuVue(this);
|
| 221 |
panneauCentre = new ContenuVue(this);
|
222 |
panneauCentre.setBorders(false);
|
| - |
|
223 |
|
| - |
|
224 |
BorderLayoutData regionCentre = new BorderLayoutData(LayoutRegion.CENTER);
|
| - |
|
225 |
regionCentre.setMargins(new Margins(5, 5, 5, 0));
|
| - |
|
226 |
|
| - |
|
227 |
panneauNavigation.setHeight(28);
|
| - |
|
228 |
panneauNavigation.setBodyBorder(false);
|
| - |
|
229 |
panneauNavigation.setBorders(false);
|
| Line 222... |
Line 230... |
| 222 |
|
230 |
|
| 223 |
BorderLayoutData regionCentre = new BorderLayoutData(LayoutRegion.CENTER);
|
231 |
panneauIntermediaire.add(panneauNavigation, new RowData(1, -1, new Margins(0)));
|
| Line 224... |
Line 232... |
| 224 |
regionCentre.setMargins(new Margins(5, 5, 5, 0));
|
232 |
panneauIntermediaire.add(panneauCentre, new RowData(1, 1, new Margins(0)));
|
| 225 |
|
233 |
|
| Line 278... |
Line 286... |
| 278 |
}
|
286 |
}
|
| Line 279... |
Line 287... |
| 279 |
|
287 |
|
| 280 |
// Le code menu est valide
|
288 |
// Le code menu est valide
|
| 281 |
if (codeOk == true) {
|
289 |
if (codeOk == true) {
|
| 282 |
// Sélection du menu
|
290 |
// Sélection du menu
|
| 283 |
panneauOuest.getMenu().selectionMenu(codeMenuClique);
|
291 |
panneauNavigation.selectionMenu(codeMenuClique);
|
| 284 |
// Gestion de l'historique
|
292 |
// Gestion de l'historique
|
| 285 |
if (requeteUrl == null) {
|
293 |
if (requeteUrl == null) {
|
| 286 |
History.newItem(codeMenuClique);
|
294 |
History.newItem(codeMenuClique);
|
| 287 |
} else {
|
295 |
} else {
|
| 288 |
History.newItem(codeMenuClique+"?"+requeteUrl);
|
296 |
History.newItem(codeMenuClique+"?"+requeteUrl);
|
| 289 |
}
|
297 |
}
|
| 290 |
// Rafraichissement du panneau central
|
298 |
// Rafraichissement du panneau central
|
| - |
|
299 |
panneauCentre.layout();
|
| 291 |
panneauCentre.layout();
|
300 |
viewport.layout();
|
| 292 |
}
|
301 |
}
|
| Line 293... |
Line 302... |
| 293 |
}
|
302 |
}
|
| 294 |
|
303 |
|