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 |
| 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 m_objTreeNode = null; |
30 |
| private Object 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 |
0
| public TreeRowObject(Object objTreeNode, Object objTreeNodeUID, int nTreeRowDepth, boolean bLeaf, int nTreeRowPossiotionType, int[] nLineConnImages) {
|
37 |
0
| super();
|
38 |
0
| m_objTreeNode = objTreeNode;
|
39 |
0
| m_objTreeNodeUID = objTreeNodeUID;
|
40 |
0
| m_nTreeRowDepth = nTreeRowDepth;
|
41 |
0
| m_bLeaf = bLeaf;
|
42 |
0
| m_nTreeRowPossiotionType = nTreeRowPossiotionType;
|
43 |
0
| m_nLineConnImages = nLineConnImages;
|
44 |
| } |
45 |
| |
46 |
0
| public Object getTreeNode() {
|
47 |
0
| return m_objTreeNode;
|
48 |
| } |
49 |
| |
50 |
0
| public Object getTreeNodeUID() {
|
51 |
0
| return m_objTreeNodeUID;
|
52 |
| } |
53 |
| |
54 |
0
| public int getTreeRowDepth() {
|
55 |
0
| return m_nTreeRowDepth;
|
56 |
| } |
57 |
| |
58 |
| |
59 |
| |
60 |
| |
61 |
0
| public boolean getLeaf() {
|
62 |
0
| return m_bLeaf;
|
63 |
| } |
64 |
| |
65 |
| |
66 |
| |
67 |
0
| public int getTreeRowPossiotionType() {
|
68 |
0
| return m_nTreeRowPossiotionType;
|
69 |
| } |
70 |
| |
71 |
| |
72 |
| |
73 |
0
| public int[] getLineConnImages() {
|
74 |
0
| return m_nLineConnImages;
|
75 |
| } |
76 |
| } |