Subversion Repositories eFlore/Applications.coel

Rev

Rev 1608 | Rev 1639 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1608 Rev 1633
Line 12... Line 12...
12
import com.extjs.gxt.ui.client.event.TreePanelEvent;
12
import com.extjs.gxt.ui.client.event.TreePanelEvent;
13
import com.extjs.gxt.ui.client.store.TreeStore;
13
import com.extjs.gxt.ui.client.store.TreeStore;
14
import com.extjs.gxt.ui.client.widget.ContentPanel;
14
import com.extjs.gxt.ui.client.widget.ContentPanel;
15
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
15
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
16
import com.extjs.gxt.ui.client.widget.treepanel.TreePanel;
16
import com.extjs.gxt.ui.client.widget.treepanel.TreePanel;
-
 
17
import com.google.gwt.user.client.Window;
Line 17... Line 18...
17
 
18
 
Line 18... Line 19...
18
public class MenuVue extends ContentPanel {
19
public class MenuVue extends ContentPanel {
19
 
20
 
Line 61... Line 62...
61
		arbreMenus = new TreePanel<Menu>(menuStore);
62
		arbreMenus = new TreePanel<Menu>(menuStore);
62
		arbreMenus.getStyle().setNodeCloseIcon(null);
63
		arbreMenus.getStyle().setNodeCloseIcon(null);
63
		arbreMenus.getStyle().setNodeOpenIcon(null);
64
		arbreMenus.getStyle().setNodeOpenIcon(null);
64
		arbreMenus.setDisplayProperty("nom");
65
		arbreMenus.setDisplayProperty("nom");
65
		arbreMenus.setHeight("100%");
66
		arbreMenus.setHeight("100%");
66
;		arbreMenus.addListener(Events.OnClick, new Listener<TreePanelEvent<Menu>>(){
67
		arbreMenus.addListener(Events.OnClick, new Listener<TreePanelEvent<Menu>>(){
67
			public void handleEvent(TreePanelEvent<Menu> tpe) {
68
			public void handleEvent(TreePanelEvent<Menu> tpe) {
68
				Menu menuCourant = arbreMenus.getSelectionModel().getSelectedItem();
69
				Menu menuCourant = arbreMenus.getSelectionModel().getSelectedItem();
69
				mediateur.clicMenu(menuCourant.getCode());
70
				mediateur.clicMenu(menuCourant.getCode());
70
			}
71
			}
71
		});
72
		});