Subversion Repositories eFlore/Applications.coel

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
60 jpm 1
package org.tela_botanica.client.modeles;
2
 
3
import java.io.Serializable;
4
 
5
import com.extjs.gxt.ui.client.data.BaseTreeModel;
6
import com.extjs.gxt.ui.client.data.TreeModel;
7
 
8
public class Menu extends BaseTreeModel<TreeModel> implements Serializable {
9
 
10
	public Menu() {
11
 
12
	}
13
 
14
	public Menu(String n) {
15
		set("nom", n);
16
	}
17
 
18
	public Menu(String nom, BaseTreeModel[] enfant) {
19
		this(nom);
20
		for (int i = 0; i < enfant.length; i++) {
21
			add(enfant[i]);
22
		}
23
	}
24
 
25
	public String getNom() {
26
		return (String) get("nom");
27
	}
28
 
29
	public String toString() {
30
		return getNom();
31
	}
32
 
33
}