View Javadoc
1   package org.exoplatform.wcm.webui.clv;
2   
3   import java.util.List;
4   
5   public class CategoryBean {
6   
7     String name;
8     String path;
9     String title;
10    String url;
11    boolean isSelected = false;
12    int depth=0;
13    long total=0;
14    List<CategoryBean> childs;
15  
16    public CategoryBean(String name, String path, String title, String url, boolean isSelected, int depth, long total) {
17      this.name = name;
18      this.path = path;
19      this.title = title;
20      this.url = url;
21      this.isSelected = isSelected;
22      this.depth = depth;
23      this.total = total;
24      this.childs = null;
25    }
26  
27    public String getTitle() {
28      return title;
29    }
30    public void setTitle(String title) {
31      this.title = title;
32    }
33    public String getUrl() {
34      return url;
35    }
36    public void setUrl(String url) {
37      this.url = url;
38    }
39    public boolean isSelected() {
40      return isSelected;
41    }
42    public void setSelected(boolean isSelected) {
43      this.isSelected = isSelected;
44    }
45    public int getDepth() {
46      return depth;
47    }
48    public void setDepth(int depth) {
49      this.depth = depth;
50    }
51  
52    public String getName() {
53      return name;
54    }
55  
56    public void setName(String name) {
57      this.name = name;
58    }
59  
60    public String getPath() {
61      return path;
62    }
63  
64    public void setPath(String path) {
65      this.path = path;
66    }
67  
68    public long getTotal() {
69      return total;
70    }
71  
72    public void setTotal(long total) {
73      this.total = total;
74    }
75  
76    public List<CategoryBean> getChilds() {
77      return childs;
78    }
79  
80    public void setChilds(List<CategoryBean> childs) {
81      this.childs = childs;
82    }
83  
84    public boolean hasChilds() {
85      return (childs!=null && childs.size()>0);
86    }
87  
88  }