001    /**
002     * Copyright (c) 2000-2010 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.util;
016    
017    import com.liferay.portal.kernel.util.StringPool;
018    
019    /**
020     * @author Jorge Ferrer
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 void setDepth(int depth) {
033                    _depth = depth;
034            }
035    
036            public String getHref() {
037                    return _href;
038            }
039    
040            public void setHref(String href) {
041                    _href = href;
042            }
043    
044            public long getId() {
045                    return _id;
046            }
047    
048            public void setId(long id) {
049                    _id = id;
050            }
051    
052            public String getImg() {
053                    return _img;
054            }
055    
056            public void setImg(String img) {
057                    _img = img;
058            }
059    
060            public String getLs() {
061                    return _ls;
062            }
063    
064            public void setLs(String ls) {
065                    _ls = ls;
066            }
067    
068            public String getName() {
069                    return _name;
070            }
071    
072            public void setName(String name) {
073                    _name = name;
074            }
075    
076            public String getObjId() {
077                    return _objId;
078            }
079    
080            public void setObjId(String objId) {
081                    _objId = objId;
082            }
083    
084            public long getParentId() {
085                    return _parentId;
086            }
087    
088            public void setParentId(long parentId) {
089                    _parentId = parentId;
090            }
091    
092            private int _depth;
093            private String _href = "javascript:;";
094            private long _id;
095            private String _img = StringPool.BLANK;
096            private String _ls = StringPool.BLANK;
097            private String _name = StringPool.BLANK;
098            private String _objId = StringPool.BLANK;
099            private long _parentId;
100    
101    }