Clover Coverage Report - KS Common 1.2-M4-SNAPSHOT (Aggregated)
Coverage timestamp: Wed Jul 20 2011 12:23:34 EDT
../../../../../../../img/srcFileCovDistChart0.png 30% of files have more coverage
27   76   7   3.86
0   49   0.26   7
7     1  
1    
 
  KSTitleDescPanel       Line # 22 27 0% 7 34 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.common.ui.client.widgets;
17   
18    import org.kuali.student.common.ui.client.widgets.layout.VerticalFlowPanel;
19   
20    import com.google.gwt.user.client.ui.Composite;
21   
 
22    public class KSTitleDescPanel extends Composite{
23    private VerticalFlowPanel layout = new VerticalFlowPanel();
24    private KSLabel title = new KSLabel();
25    private KSLabel desc = new KSLabel();
26   
 
27  0 toggle public KSTitleDescPanel(String title, String desc){
28  0 this.title.setText(title);
29  0 this.desc.setText(desc);
30  0 this.title.setStyleName("KS-Common-Title");
31  0 this.desc.setStyleName("KS-Common-Desc");
32  0 layout.add(this.title);
33  0 layout.add(this.desc);
34  0 this.initWidget(layout);
35    }
36   
 
37  0 toggle public KSTitleDescPanel(String title){
38  0 this.title.setText(title);
39  0 this.title.setStyleName("KS-Common-Title");
40  0 this.desc.setStyleName("KS-Common-Desc");
41  0 layout.add(this.title);
42  0 layout.add(this.desc);
43  0 this.desc.setVisible(false);
44  0 this.initWidget(layout);
45    }
46   
 
47  0 toggle public KSTitleDescPanel(){
48  0 layout.add(this.title);
49  0 layout.add(this.desc);
50  0 this.title.setStyleName("KS-Common-Title");
51  0 this.desc.setStyleName("KS-Common-Desc");
52  0 this.desc.setVisible(false);
53  0 this.title.setVisible(false);
54  0 this.initWidget(layout);
55    }
56   
 
57  0 toggle public void setTitleText(String title){
58  0 this.title.setText(title);
59  0 this.title.setVisible(true);
60    }
61   
 
62  0 toggle public void setDesc(String desc){
63  0 this.desc.setText(desc);
64  0 this.desc.setVisible(true);
65    }
66   
 
67  0 toggle public KSLabel getTitleWidget() {
68  0 return title;
69    }
70   
 
71  0 toggle public KSLabel getDescWidget(){
72  0 return desc;
73    }
74   
75   
76    }