Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 1513 Rev 1608
Line 44... Line 44...
44
	    Menu menuCollections = new Menu(i18nC.menuCollection(), MenuApplicationId.COLLECTION);
44
	    Menu menuCollections = new Menu(i18nC.menuCollection(), MenuApplicationId.COLLECTION);
45
	    Menu menuPersonnes = new Menu(i18nC.menuPersonne(), MenuApplicationId.PERSONNE);
45
	    Menu menuPersonnes = new Menu(i18nC.menuPersonne(), MenuApplicationId.PERSONNE);
46
	    Menu menuPublications = new Menu(i18nC.menuPublication(), MenuApplicationId.PUBLICATION);
46
	    Menu menuPublications = new Menu(i18nC.menuPublication(), MenuApplicationId.PUBLICATION);
47
	    Menu menuCommentaires = new Menu(i18nC.menuCommentaire(), MenuApplicationId.COMMENTAIRE);
47
	    Menu menuCommentaires = new Menu(i18nC.menuCommentaire(), MenuApplicationId.COMMENTAIRE);
Line -... Line 48...
-
 
48
	    
48
	    
49
	    
49
	    menuStore.add(accueilMenu, false);
50
	    menuStore.add(accueilMenu, false);
50
	    menuStore.add(projetMenu, false);
51
	    menuStore.add(accueilMenu, projetMenu, true);
51
	    menuStore.add(menuInstitution, false);
52
	    menuStore.add(projetMenu, menuCommentaires, true);
52
	    menuStore.add(menuCollections, false);
53
	    menuStore.add(projetMenu, menuInstitution, true);
53
	    menuStore.add(menuPersonnes, false);
54
	    menuStore.add(menuInstitution, menuCollections, true);
54
	    menuStore.add(menuPublications, false);
55
	    menuStore.add(menuCollections, menuPersonnes, true);
-
 
56
	    menuStore.add(menuPersonnes, menuPublications, true);
55
	    menuStore.add(menuCommentaires, false);
57
	    
Line 56... Line 58...
56
	}
58
	}
57
	
59
	
58
	private void afficherMenu() {
60
	private void afficherMenu() {
-
 
61
		arbreMenus = new TreePanel<Menu>(menuStore);
59
		arbreMenus = new TreePanel<Menu>(menuStore);
62
		arbreMenus.getStyle().setNodeCloseIcon(null);
60
		arbreMenus.getStyle().setLeafIcon(GXT.IMAGES.tree_folder());
63
		arbreMenus.getStyle().setNodeOpenIcon(null);
61
		arbreMenus.setDisplayProperty("nom");
64
		arbreMenus.setDisplayProperty("nom");
62
		arbreMenus.setHeight("100%");
65
		arbreMenus.setHeight("100%");
63
		arbreMenus.addListener(Events.OnClick, new Listener<TreePanelEvent<Menu>>(){
66
;		arbreMenus.addListener(Events.OnClick, new Listener<TreePanelEvent<Menu>>(){
64
			public void handleEvent(TreePanelEvent<Menu> tpe) {
67
			public void handleEvent(TreePanelEvent<Menu> tpe) {
65
				Menu menuCourant = arbreMenus.getSelectionModel().getSelectedItem();
68
				Menu menuCourant = arbreMenus.getSelectionModel().getSelectedItem();
66
				mediateur.clicMenu(menuCourant.getCode());
69
				mediateur.clicMenu(menuCourant.getCode());
Line 67... Line 70...
67
			}
70
			}
-
 
71
		});
68
		});
72
		
Line 69... Line 73...
69
		
73
		add(arbreMenus);
70
		add(arbreMenus);
74
		arbreMenus.setAutoExpand(true);
71
	}
75
	}