OSDN Git Service

T28353
[everfolder/source.git] / source / workspace / EverFolder / src / com / yuji / ef / dao / Node.java
1 package com.yuji.ef.dao;
2
3 import java.util.ArrayList;
4 import java.util.List;
5
6 import com.yuji.ef.LabelIconView;
7
8 public class Node {
9         //private Node parent = null;
10         protected String guid = null;
11         protected String name = null;
12         protected LabelIconView view = null;
13         protected List<Node> children = null;
14
15         public Node(String name, LabelIconView view){
16                 this.name = name;
17                 this.view = view;
18         }
19         
20         public List<Node> getChildren() {
21                 return children;
22         }
23         
24         public String getGuid() {
25                 return guid;
26         }
27         
28         public String getName(){
29                 return name;
30         }
31         
32         public void add(Node node){
33                 children.add(node);
34         }
35         
36         public LabelIconView getView() {
37                 return view;
38         }
39         
40         public int getIconId(){
41                 return -1;
42         }
43 }