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 |
|
import com.google.gwt.user.client.ui.Widget; |
19 |
|
|
20 |
|
|
21 |
|
|
22 |
|
|
23 |
|
|
24 |
|
@author |
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
@deprecated |
30 |
|
|
|
|
| 0% |
Uncovered Elements: 15 (15) |
Complexity: 6 |
Complexity Density: 0.75 |
|
31 |
|
public abstract class DisplayMultiplicityComposite extends MultiplicityComposite { |
32 |
|
|
33 |
|
protected String itemLabel; |
34 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
35 |
0
|
public DisplayMultiplicityComposite(){... |
36 |
0
|
super(StyleType.SUB_LEVEL); |
37 |
|
} |
38 |
|
|
39 |
|
|
40 |
|
@see |
41 |
|
|
|
|
| 0% |
Uncovered Elements: 6 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
42 |
0
|
@Override... |
43 |
|
public MultiplicityItem getItemDecorator(StyleType style) { |
44 |
0
|
DisplayItem item = new DisplayItem(style); |
45 |
0
|
if (itemLabel != null) { |
46 |
0
|
item.setItemLabel(itemLabel + " " + itemCount); |
47 |
|
} |
48 |
|
|
49 |
0
|
return item; |
50 |
|
} |
51 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
52 |
0
|
@Override... |
53 |
|
public Widget generateAddWidget() { |
54 |
0
|
return null; |
55 |
|
} |
56 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
57 |
0
|
public String getItemLabel() {... |
58 |
0
|
return itemLabel; |
59 |
|
} |
60 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
61 |
0
|
public void setItemLabel(String itemLabel) {... |
62 |
0
|
this.itemLabel = itemLabel; |
63 |
|
} |
64 |
|
|
65 |
|
} |