Clover Coverage Report - KS LUM 1.2-M4-SNAPSHOT (Aggregated)
Coverage timestamp: Wed Jul 20 2011 13:25:47 EDT
../../../../../../../img/srcFileCovDistChart0.png 43% of files have more coverage
12   78   12   1
0   44   1   12
12     1  
1    
 
  OutlineNode       Line # 20 12 0% 12 24 0% 0.0
 
No Tests
 
1    /**
2    * Copyright 2010 The Kuali Foundation Licensed under the
3    * Educational Community License, Version 2.0 (the "License"); you may
4    * not use this file except in compliance with the License. You may
5    * obtain a copy of the License at
6    *
7    * http://www.osedu.org/licenses/ECL-2.0
8    *
9    * Unless required by applicable law or agreed to in writing,
10    * software distributed under the License is distributed on an "AS IS"
11    * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12    * or implied. See the License for the specific language governing
13    * permissions and limitations under the License.
14    */
15   
16    package org.kuali.student.lum.common.client.lo;
17   
18    import org.kuali.student.common.assembly.data.Data;
19   
 
20    public class OutlineNode<T> {
21    int indentLevel = 0;
22   
23    T userObject;
24   
25    OutlineNodeModel<T> outlineModel;
26   
27    // TODO M4 - some way to subclass OutlineNode?
28    private Object opaque;
29   
30    private Data metaInfo;
31   
 
32  0 toggle public void setModel(OutlineNodeModel<T> model) {
33  0 outlineModel = model;
34    }
35   
 
36  0 toggle public void setCurrentNode() {
37  0 outlineModel.setCurrentNode(this);
38    }
39   
 
40  0 toggle public T getUserObject() {
41  0 return userObject;
42    }
43   
 
44  0 toggle public void setUserObject(T u) {
45  0 userObject = u;
46    }
47   
 
48  0 toggle public void indent() {
49  0 indentLevel++;
50    }
51   
 
52  0 toggle public void outdent() {
53  0 indentLevel--;
54    }
55   
 
56  0 toggle public void setIndentLevel(int level) {
57  0 indentLevel = level;
58    }
59   
 
60  0 toggle public int getIndentLevel() {
61  0 return indentLevel;
62    }
63   
 
64  0 toggle public void setOpaque(Object opaque) {
65  0 this.opaque = opaque;
66    }
67   
 
68  0 toggle public Object getOpaque() {
69  0 return opaque;
70    }
71   
 
72  0 toggle public void setMetaInfo(Data metaInfo) {
73  0 this.metaInfo=metaInfo;
74    }
 
75  0 toggle public Data getMetaInfo() {
76  0 return metaInfo;
77    }
78    }