Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 553 Rev 791
Line 72... Line 72...
72
		arbreMenus.setDisplayProperty("nom");
72
		arbreMenus.setDisplayProperty("nom");
73
		arbreMenus.setHeight("100%");
73
		arbreMenus.setHeight("100%");
74
		arbreMenus.addListener(Events.OnClick, new Listener<TreePanelEvent<Menu>>(){
74
		arbreMenus.addListener(Events.OnClick, new Listener<TreePanelEvent<Menu>>(){
75
			public void handleEvent(TreePanelEvent<Menu> tpe) {
75
			public void handleEvent(TreePanelEvent<Menu> tpe) {
76
				Menu menuCourant = arbreMenus.getSelectionModel().getSelectedItem();
76
				Menu menuCourant = arbreMenus.getSelectionModel().getSelectedItem();
77
				selectionMenu(menuCourant);
77
				mediateur.clicMenu(menuCourant.getCode());
78
			}
78
			}
79
		});
79
		});
Line 80... Line 80...
80
		
80
		
81
		add(arbreMenus);
81
		add(arbreMenus);
Line 82... Line 82...
82
	}
82
	}
83
	
83
	
84
	private void selectionMenu(Menu menuSelectionne) {
-
 
85
		String codeMenuSelectionne = menuSelectionne.getCode();
84
	public void selectionMenu(String code) {
Line 86... Line 85...
86
		mediateur.clicMenu(codeMenuSelectionne);
85
		arbreMenus.getSelectionModel().select(menuStore.findModel("code", code), false);
87
	}
86
	}
88
	
87