60 |
jpm |
1 |
package org.tela_botanica.client.vues;
|
|
|
2 |
|
|
|
3 |
import org.tela_botanica.client.RegistreId;
|
|
|
4 |
import org.tela_botanica.client.interfaces.Rafraichissable;
|
|
|
5 |
|
|
|
6 |
import com.extjs.gxt.ui.client.Registry;
|
|
|
7 |
import com.extjs.gxt.ui.client.Style.LayoutRegion;
|
|
|
8 |
import com.extjs.gxt.ui.client.util.Margins;
|
|
|
9 |
import com.extjs.gxt.ui.client.widget.LayoutContainer;
|
|
|
10 |
import com.extjs.gxt.ui.client.widget.layout.BorderLayout;
|
|
|
11 |
import com.extjs.gxt.ui.client.widget.layout.BorderLayoutData;
|
156 |
jp_milcent |
12 |
import com.google.gwt.core.client.GWT;
|
60 |
jpm |
13 |
|
|
|
14 |
public class StructureVue extends LayoutContainer implements Rafraichissable {
|
|
|
15 |
|
|
|
16 |
private StructureListePanneauVue panneauInstitutionListe;
|
|
|
17 |
private StructureDetailPanneauVue panneauInstitutionDetail;
|
|
|
18 |
|
|
|
19 |
public StructureVue() {
|
|
|
20 |
BorderLayout layout = new BorderLayout();
|
|
|
21 |
layout.setEnableState(false);
|
|
|
22 |
setLayout(layout);
|
|
|
23 |
|
|
|
24 |
panneauInstitutionListe = new StructureListePanneauVue();
|
|
|
25 |
this.add(panneauInstitutionListe, new BorderLayoutData(LayoutRegion.CENTER));
|
|
|
26 |
|
|
|
27 |
panneauInstitutionDetail = new StructureDetailPanneauVue();
|
|
|
28 |
BorderLayoutData southData = new BorderLayoutData(LayoutRegion.SOUTH, .5f, 200, 1000);
|
|
|
29 |
southData.setSplit(true);
|
|
|
30 |
southData.setMargins(new Margins(5, 0, 0, 0));
|
|
|
31 |
this.add(panneauInstitutionDetail, southData);
|
|
|
32 |
}
|
|
|
33 |
|
|
|
34 |
public void rafraichir(Object nouvelleDonnees) {
|
156 |
jp_milcent |
35 |
// Nous passons l'objet aux méthodes rafraichir des panneaux composant le panneau principal Structure
|
|
|
36 |
panneauInstitutionListe.rafraichir(nouvelleDonnees);
|
|
|
37 |
panneauInstitutionDetail.rafraichir(nouvelleDonnees);
|
60 |
jpm |
38 |
}
|
|
|
39 |
|
|
|
40 |
}
|