Subversion Repositories eFlore/Applications.coel

Rev

Rev 60 | Rev 312 | Go to most recent revision | Details | Compare with Previous | 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
 
64 jpm 10
	/**
11
	 * Identifiant pour sérialisé l'objet...
12
	 */
13
	private static final long serialVersionUID = 4;
14
 
60 jpm 15
	public Menu() {
16
 
17
	}
18
 
19
	public Menu(String n) {
20
		set("nom", n);
21
	}
22
 
23
	public Menu(String nom, BaseTreeModel[] enfant) {
24
		this(nom);
25
		for (int i = 0; i < enfant.length; i++) {
26
			add(enfant[i]);
27
		}
28
	}
29
 
30
	public String getNom() {
31
		return (String) get("nom");
32
	}
33
 
34
	public String toString() {
35
		return getNom();
36
	}
37
 
38
}