1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portal.util;
16  
17  import com.liferay.portal.kernel.util.StringPool;
18  
19  /**
20   * <a href="TreeNodeView.java.html"><b><i>View Source</i></b></a>
21   *
22   * @author Jorge Ferrer
23   */
24  public class TreeNodeView {
25  
26      public TreeNodeView(int id) {
27          _id = id;
28      }
29  
30      public int getDepth() {
31          return _depth;
32      }
33  
34      public void setDepth(int depth) {
35          _depth = depth;
36      }
37  
38      public String getHref() {
39          return _href;
40      }
41  
42      public void setHref(String href) {
43          _href = href;
44      }
45  
46      public long getId() {
47          return _id;
48      }
49  
50      public void setId(long id) {
51          _id = id;
52      }
53  
54      public String getImg() {
55          return _img;
56      }
57  
58      public void setImg(String img) {
59          _img = img;
60      }
61  
62      public String getLs() {
63          return _ls;
64      }
65  
66      public void setLs(String ls) {
67          _ls = ls;
68      }
69  
70      public String getName() {
71          return _name;
72      }
73  
74      public void setName(String name) {
75          _name = name;
76      }
77  
78      public String getObjId() {
79          return _objId;
80      }
81  
82      public void setObjId(String objId) {
83          _objId = objId;
84      }
85  
86      public long getParentId() {
87          return _parentId;
88      }
89  
90      public void setParentId(long parentId) {
91          _parentId = parentId;
92      }
93  
94      private int _depth;
95      private String _href = "javascript: ;";
96      private long _id;
97      private String _img = StringPool.BLANK;
98      private String _ls = StringPool.BLANK;
99      private String _name = StringPool.BLANK;
100     private String _objId = StringPool.BLANK;
101     private long _parentId;
102 
103 }