1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
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 |
|
|
|
|
| 0% |
Uncovered Elements: 34 (34) |
Complexity: 7 |
Complexity Density: 0.26 |
|
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 |
|
|
|
|
| 0% |
Uncovered Elements: 7 (7) |
Complexity: 1 |
Complexity Density: 0.14 |
|
27 |
0
|
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 |
|
|
|
|
| 0% |
Uncovered Elements: 7 (7) |
Complexity: 1 |
Complexity Density: 0.14 |
|
37 |
0
|
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 |
|
|
|
|
| 0% |
Uncovered Elements: 7 (7) |
Complexity: 1 |
Complexity Density: 0.14 |
|
47 |
0
|
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 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
57 |
0
|
public void setTitleText(String title){... |
58 |
0
|
this.title.setText(title); |
59 |
0
|
this.title.setVisible(true); |
60 |
|
} |
61 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
62 |
0
|
public void setDesc(String desc){... |
63 |
0
|
this.desc.setText(desc); |
64 |
0
|
this.desc.setVisible(true); |
65 |
|
} |
66 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
67 |
0
|
public KSLabel getTitleWidget() {... |
68 |
0
|
return title; |
69 |
|
} |
70 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
71 |
0
|
public KSLabel getDescWidget(){... |
72 |
0
|
return desc; |
73 |
|
} |
74 |
|
|
75 |
|
|
76 |
|
} |