1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
package org.apache.tapestry.contrib.tree.model; |
16 | |
|
17 | |
|
18 | |
|
19 | |
|
20 | |
public class TreeRowObject |
21 | |
{ |
22 | |
|
23 | |
public static final int FIRST_ROW = 1; |
24 | |
public static final int MIDDLE_ROW = 2; |
25 | |
public static final int LAST_ROW = 3; |
26 | |
public static final int FIRST_LAST_ROW = 4; |
27 | |
|
28 | |
public static final int EMPTY_CONN_IMG = 1; |
29 | |
public static final int LINE_CONN_IMG = 2; |
30 | |
|
31 | 0 | private Object m_objTreeNode = null; |
32 | 0 | private Object m_objTreeNodeUID = null; |
33 | |
private int m_nTreeRowDepth; |
34 | 0 | private boolean m_bLeaf = false; |
35 | 0 | private int m_nTreeRowPossiotionType = MIDDLE_ROW; |
36 | |
private int[] m_nLineConnImages; |
37 | |
|
38 | |
public TreeRowObject(Object objTreeNode, Object objTreeNodeUID, |
39 | |
int nTreeRowDepth, boolean bLeaf, int nTreeRowPossiotionType, |
40 | |
int[] nLineConnImages) |
41 | |
{ |
42 | 0 | super(); |
43 | 0 | m_objTreeNode = objTreeNode; |
44 | 0 | m_objTreeNodeUID = objTreeNodeUID; |
45 | 0 | m_nTreeRowDepth = nTreeRowDepth; |
46 | 0 | m_bLeaf = bLeaf; |
47 | 0 | m_nTreeRowPossiotionType = nTreeRowPossiotionType; |
48 | 0 | m_nLineConnImages = nLineConnImages; |
49 | 0 | } |
50 | |
|
51 | |
public Object getTreeNode() |
52 | |
{ |
53 | 0 | return m_objTreeNode; |
54 | |
} |
55 | |
|
56 | |
public Object getTreeNodeUID() |
57 | |
{ |
58 | 0 | return m_objTreeNodeUID; |
59 | |
} |
60 | |
|
61 | |
public int getTreeRowDepth() |
62 | |
{ |
63 | 0 | return m_nTreeRowDepth; |
64 | |
} |
65 | |
|
66 | |
|
67 | |
|
68 | |
|
69 | |
public boolean getLeaf() |
70 | |
{ |
71 | 0 | return m_bLeaf; |
72 | |
} |
73 | |
|
74 | |
|
75 | |
|
76 | |
|
77 | |
public int getTreeRowPossiotionType() |
78 | |
{ |
79 | 0 | return m_nTreeRowPossiotionType; |
80 | |
} |
81 | |
|
82 | |
|
83 | |
|
84 | |
|
85 | |
public int[] getLineConnImages() |
86 | |
{ |
87 | 0 | return m_nLineConnImages; |
88 | |
} |
89 | |
} |