1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
package org.kuali.student.common.ui.client.configurable.mvc.multiplicity; |
17 |
|
|
18 |
|
|
19 |
|
import org.kuali.student.common.ui.client.configurable.mvc.multiplicity.MultiplicityComposite.StyleType; |
20 |
|
import org.kuali.student.common.ui.client.widgets.KSLabel; |
21 |
|
|
22 |
|
import com.google.gwt.user.client.ui.FlowPanel; |
23 |
|
import com.google.gwt.user.client.ui.Widget; |
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
@author |
30 |
|
|
31 |
|
|
32 |
|
|
33 |
|
@deprecated |
34 |
|
|
|
|
| 0% |
Uncovered Elements: 22 (22) |
Complexity: 8 |
Complexity Density: 0.67 |
|
35 |
|
public class DisplayItem extends MultiplicityItem { |
36 |
|
private boolean loaded = false; |
37 |
|
private KSLabel itemLabel; |
38 |
|
|
39 |
|
protected FlowPanel itemPanel = new FlowPanel(); |
40 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
41 |
0
|
public DisplayItem(){... |
42 |
0
|
initWidget(itemPanel); |
43 |
|
} |
44 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
45 |
0
|
public DisplayItem(StyleType style){... |
46 |
0
|
this.initWidget(itemPanel); |
47 |
|
|
48 |
|
} |
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
49 |
0
|
public void onLoad(){... |
50 |
|
} |
51 |
|
|
52 |
|
|
53 |
|
@see |
54 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
55 |
0
|
@Override... |
56 |
|
public void clear() { |
57 |
0
|
loaded = false; |
58 |
|
} |
59 |
|
|
60 |
|
|
61 |
|
@see |
62 |
|
|
|
|
| 0% |
Uncovered Elements: 12 (12) |
Complexity: 3 |
Complexity Density: 0.38 |
|
63 |
0
|
@Override... |
64 |
|
public void redraw() { |
65 |
0
|
Widget item = getItemWidget(); |
66 |
0
|
if (!loaded){ |
67 |
|
|
68 |
0
|
if (itemLabel != null) { |
69 |
0
|
itemPanel.add(itemLabel); |
70 |
0
|
itemLabel.addStyleName("KS-Multiplicity-Item-Header"); |
71 |
|
} |
72 |
0
|
itemPanel.add(item); |
73 |
0
|
itemPanel.addStyleName("KS-Multiplicity-Display-Item"); |
74 |
0
|
loaded = true; |
75 |
|
} |
76 |
|
|
77 |
|
|
78 |
|
|
79 |
|
|
80 |
|
} |
81 |
|
|
82 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
83 |
0
|
public void setItemLabel(String itemLabel) {... |
84 |
0
|
this.itemLabel = new KSLabel(itemLabel); |
85 |
|
} |
86 |
|
|
87 |
|
} |