KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > tapestry > contrib > tree > model > TreeRowObject


1 // Copyright 2004, 2005 The Apache Software Foundation
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
// http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14

15 package org.apache.tapestry.contrib.tree.model;
16
17 /**
18  * @author ceco
19  */

20 public class TreeRowObject {
21     public static final int FIRST_ROW = 1;
22     public static final int MIDDLE_ROW = 2;
23     public static final int LAST_ROW = 3;
24     public static final int FIRST_LAST_ROW = 4;
25
26     public static final int EMPTY_CONN_IMG = 1;
27     public static final int LINE_CONN_IMG = 2;
28
29     private Object JavaDoc m_objTreeNode = null;
30     private Object JavaDoc m_objTreeNodeUID = null;
31     private int m_nTreeRowDepth;
32     private boolean m_bLeaf = false;
33     private int m_nTreeRowPossiotionType = MIDDLE_ROW;
34     private int[] m_nLineConnImages;
35
36     public TreeRowObject(Object JavaDoc objTreeNode, Object JavaDoc objTreeNodeUID, int nTreeRowDepth, boolean bLeaf, int nTreeRowPossiotionType, int[] nLineConnImages) {
37         super();
38         m_objTreeNode = objTreeNode;
39         m_objTreeNodeUID = objTreeNodeUID;
40         m_nTreeRowDepth = nTreeRowDepth;
41         m_bLeaf = bLeaf;
42         m_nTreeRowPossiotionType = nTreeRowPossiotionType;
43         m_nLineConnImages = nLineConnImages;
44     }
45
46     public Object JavaDoc getTreeNode() {
47         return m_objTreeNode;
48     }
49
50     public Object JavaDoc getTreeNodeUID() {
51         return m_objTreeNodeUID;
52     }
53
54     public int getTreeRowDepth() {
55         return m_nTreeRowDepth;
56     }
57
58     /**
59      * @return Returns the leaf.
60      */

61     public boolean getLeaf() {
62         return m_bLeaf;
63     }
64     /**
65      * @return Returns the treeRowPossiotionType.
66      */

67     public int getTreeRowPossiotionType() {
68         return m_nTreeRowPossiotionType;
69     }
70     /**
71      * @return Returns the lineConnImages.
72      */

73     public int[] getLineConnImages() {
74         return m_nLineConnImages;
75     }
76 }
77
Popular Tags