001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.kernel.util;
016    
017    /**
018     * @author Jorge Ferrer
019     * @author Dennis Ju
020     * @author Brian Wing Shun Chan
021     */
022    public class TreeNodeView {
023    
024            public TreeNodeView(int id) {
025                    _id = id;
026            }
027    
028            public int getDepth() {
029                    return _depth;
030            }
031    
032            public String getHref() {
033                    return _href;
034            }
035    
036            public long getId() {
037                    return _id;
038            }
039    
040            public String getImg() {
041                    return _img;
042            }
043    
044            public String getLs() {
045                    return _ls;
046            }
047    
048            public String getName() {
049                    return _name;
050            }
051    
052            public String getObjId() {
053                    return _objId;
054            }
055    
056            public long getParentId() {
057                    return _parentId;
058            }
059    
060            public boolean isLeaf() {
061                    return _leaf;
062            }
063    
064            public void setDepth(int depth) {
065                    _depth = depth;
066            }
067    
068            public void setHref(String href) {
069                    _href = href;
070            }
071    
072            public void setId(long id) {
073                    _id = id;
074            }
075    
076            public void setImg(String img) {
077                    _img = img;
078            }
079    
080            public void setLeaf(boolean leaf) {
081                    _leaf = leaf;
082            }
083    
084            public void setLs(String ls) {
085                    _ls = ls;
086            }
087    
088            public void setName(String name) {
089                    _name = name;
090            }
091    
092            public void setObjId(String objId) {
093                    _objId = objId;
094            }
095    
096            public void setParentId(long parentId) {
097                    _parentId = parentId;
098            }
099    
100            private int _depth;
101            private String _href = "javascript:;";
102            private long _id;
103            private String _img = StringPool.BLANK;
104            private boolean _leaf;
105            private String _ls = StringPool.BLANK;
106            private String _name = StringPool.BLANK;
107            private String _objId = StringPool.BLANK;
108            private long _parentId;
109    
110    }