982 |
jpm |
1 |
package org.tela_botanica.client.vues;
|
|
|
2 |
|
|
|
3 |
import org.tela_botanica.client.Mediateur;
|
|
|
4 |
|
|
|
5 |
import com.extjs.gxt.ui.client.util.Margins;
|
|
|
6 |
import com.extjs.gxt.ui.client.util.Padding;
|
989 |
jpm |
7 |
import com.extjs.gxt.ui.client.widget.ContentPanel;
|
982 |
jpm |
8 |
import com.extjs.gxt.ui.client.widget.layout.VBoxLayout;
|
|
|
9 |
import com.extjs.gxt.ui.client.widget.layout.VBoxLayoutData;
|
|
|
10 |
import com.extjs.gxt.ui.client.widget.layout.VBoxLayout.VBoxLayoutAlign;
|
|
|
11 |
|
989 |
jpm |
12 |
public class NavigationVue extends ContentPanel {
|
982 |
jpm |
13 |
private Mediateur mediateur = null;
|
|
|
14 |
private MenuVue menu = null;
|
|
|
15 |
private FiltreVue filtre = null;
|
|
|
16 |
|
|
|
17 |
public NavigationVue(Mediateur mediateurCourant) {
|
|
|
18 |
mediateur = mediateurCourant;
|
|
|
19 |
VBoxLayout layout = new VBoxLayout();
|
|
|
20 |
layout.setPadding(new Padding(0));
|
|
|
21 |
layout.setVBoxLayoutAlign(VBoxLayoutAlign.STRETCH);
|
1680 |
raphael |
22 |
setHeadingHtml(Mediateur.i18nC.titreNavigation());
|
982 |
jpm |
23 |
setLayout(layout);
|
|
|
24 |
|
|
|
25 |
menu = new MenuVue(mediateur);
|
|
|
26 |
add(menu, new VBoxLayoutData(new Margins(0)));
|
|
|
27 |
|
|
|
28 |
filtre = new FiltreVue(mediateur);
|
989 |
jpm |
29 |
add(filtre, new VBoxLayoutData(new Margins(0)));
|
982 |
jpm |
30 |
}
|
|
|
31 |
|
|
|
32 |
public MenuVue getMenu() {
|
|
|
33 |
return menu;
|
|
|
34 |
}
|
|
|
35 |
|
|
|
36 |
public FiltreVue getFiltre() {
|
|
|
37 |
return filtre;
|
|
|
38 |
}
|
|
|
39 |
}
|