1 15 package org.apache.tapestry.contrib.tree.model; 16 17 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 public TreeRowObject(Object objTreeNode, Object 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 getTreeNode() { 47 return m_objTreeNode; 48 } 49 50 public Object getTreeNodeUID() { 51 return m_objTreeNodeUID; 52 } 53 54 public int getTreeRowDepth() { 55 return m_nTreeRowDepth; 56 } 57 58 61 public boolean getLeaf() { 62 return m_bLeaf; 63 } 64 67 public int getTreeRowPossiotionType() { 68 return m_nTreeRowPossiotionType; 69 } 70 73 public int[] getLineConnImages() { 74 return m_nLineConnImages; 75 } 76 } 77 | Popular Tags |