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 |
|
|
|
16 |
public NavigationVue(Mediateur mediateurCourant) {
|
|
|
17 |
mediateur = mediateurCourant;
|
|
|
18 |
VBoxLayout layout = new VBoxLayout();
|
|
|
19 |
layout.setPadding(new Padding(0));
|
|
|
20 |
layout.setVBoxLayoutAlign(VBoxLayoutAlign.STRETCH);
|
1680 |
raphael |
21 |
setHeadingHtml(Mediateur.i18nC.titreNavigation());
|
982 |
jpm |
22 |
setLayout(layout);
|
|
|
23 |
|
|
|
24 |
menu = new MenuVue(mediateur);
|
|
|
25 |
add(menu, new VBoxLayoutData(new Margins(0)));
|
|
|
26 |
}
|
|
|
27 |
|
|
|
28 |
public MenuVue getMenu() {
|
|
|
29 |
return menu;
|
|
|
30 |
}
|
|
|
31 |
}
|