1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
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 }