001
014
015 package com.liferay.portal.util;
016
017 import java.io.Serializable;
018
019 import java.util.ArrayList;
020 import java.util.List;
021
022
025 public class TreeView implements Serializable {
026
027 public TreeView() {
028 this(new ArrayList<TreeNodeView>(), 0);
029 }
030
031 public TreeView(List<TreeNodeView> list, int depth) {
032 _list = list;
033 _depth = depth;
034 }
035
036 public List<TreeNodeView> getList() {
037 return _list;
038 }
039
040 public int getDepth() {
041 return _depth;
042 }
043
044 private List<TreeNodeView> _list;
045 private int _depth;
046
047 }