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;
|
|
|
7 |
import com.extjs.gxt.ui.client.widget.LayoutContainer;
|
|
|
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 |
|
|
|
12 |
public class NavigationVue extends LayoutContainer{
|
|
|
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);
|
|
|
22 |
setLayout(layout);
|
|
|
23 |
|
|
|
24 |
menu = new MenuVue(mediateur);
|
|
|
25 |
add(menu, new VBoxLayoutData(new Margins(0)));
|
|
|
26 |
|
|
|
27 |
filtre = new FiltreVue(mediateur);
|
|
|
28 |
add(filtre, new VBoxLayoutData(new Margins(5, 0, 0, 0)));
|
|
|
29 |
}
|
|
|
30 |
|
|
|
31 |
public MenuVue getMenu() {
|
|
|
32 |
return menu;
|
|
|
33 |
}
|
|
|
34 |
|
|
|
35 |
public FiltreVue getFiltre() {
|
|
|
36 |
return filtre;
|
|
|
37 |
}
|
|
|
38 |
}
|