package org.pcrdpg.web;
import java.util.ArrayList;
import java.util.List;
public class Menu {
private List menuItems;
private CustomTree tree;
public Menu()
{
menuItems = new ArrayList();
//faire un traitement dans la BD pour recuperer le menu de l'utilisateur
NodeItem n1=new NodeItem("Souscription","/faces/subscription.jsp");
NodeItem n2=new NodeItem("Contrats","/faces/Contrats.jsp");
menuItems.add(n1);
menuItems.add(n2);
}
public List getMenuItems() {
return menuItems;
}
public void setMenuItems(List menuItems) {
this.menuItems = menuItems;
}
public CustomTree getTree() {
return tree;
}
public void setTree(CustomTree tree) {
this.tree = tree;
}
}