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 java.io.Serializable;
18  
19  import java.util.ArrayList;
20  import java.util.List;
21  
22  /**
23   * <a href="TreeView.java.html"><b><i>View Source</i></b></a>
24   *
25   * @author Jorge Ferrer
26   */
27  public class TreeView implements Serializable {
28  
29      public TreeView() {
30          this(new ArrayList<TreeNodeView>(), 0);
31      }
32  
33      public TreeView(List<TreeNodeView> list, int depth) {
34          _list = list;
35          _depth = depth;
36      }
37  
38      public List<TreeNodeView> getList() {
39          return _list;
40      }
41  
42      public int getDepth() {
43          return _depth;
44      }
45  
46      private List<TreeNodeView> _list;
47      private int _depth;
48  
49  }