Coverage Report - org.apache.tapestry.contrib.tree.model.TreeRowObject
 
Classes in this File Line Coverage Branch Coverage Complexity
TreeRowObject
0%
0/18
N/A
1
 
 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  
 {
 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  
      * @return Returns the leaf.
 68  
      */
 69  
     public boolean getLeaf()
 70  
     {
 71  0
         return m_bLeaf;
 72  
     }
 73  
 
 74  
     /**
 75  
      * @return Returns the treeRowPossiotionType.
 76  
      */
 77  
     public int getTreeRowPossiotionType()
 78  
     {
 79  0
         return m_nTreeRowPossiotionType;
 80  
     }
 81  
 
 82  
     /**
 83  
      * @return Returns the lineConnImages.
 84  
      */
 85  
     public int[] getLineConnImages()
 86  
     {
 87  0
         return m_nLineConnImages;
 88  
     }
 89  
 }