1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
package org.xwiki.test.ui.po.editor; |
21 |
|
|
22 |
|
import org.xwiki.test.ui.po.FormElement; |
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
@version |
28 |
|
@since |
29 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (14) |
Complexity: 7 |
Complexity Density: 1.4 |
|
30 |
|
public class StaticListClassEditElement extends ClassPropertyEditPane |
31 |
|
{ |
32 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 2 |
Complexity Density: 1 |
|
33 |
|
public enum DisplayType |
34 |
|
{ |
35 |
|
INPUT("input"), |
36 |
|
SELECT("select"), |
37 |
|
RADIO("radio"), |
38 |
|
CHECKBOX("checkbox"); |
39 |
|
|
40 |
|
private final String id; |
41 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
42 |
4 |
private DisplayType(final String id)... |
43 |
|
{ |
44 |
4 |
this.id = id; |
45 |
|
} |
46 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
47 |
1 |
@Override... |
48 |
|
public String toString() |
49 |
|
{ |
50 |
1 |
return this.id; |
51 |
|
} |
52 |
|
} |
53 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
54 |
5 |
public StaticListClassEditElement(FormElement form, String propertyName)... |
55 |
|
{ |
56 |
5 |
super(form, propertyName); |
57 |
|
} |
58 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
59 |
1 |
public void setValues(String values)... |
60 |
|
{ |
61 |
1 |
setMetaProperty("values", values); |
62 |
|
} |
63 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 2 |
Complexity Density: 2 |
|
64 |
3 |
public void setMultiSelect(boolean isMultiSelect)... |
65 |
|
{ |
66 |
3 |
setMetaProperty("multiSelect", isMultiSelect ? "true" : "false"); |
67 |
|
} |
68 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
69 |
1 |
public void setDisplayType(DisplayType type)... |
70 |
|
{ |
71 |
1 |
setMetaProperty("displayType", type.toString()); |
72 |
|
} |
73 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 2 |
Complexity Density: 2 |
|
74 |
2 |
public void setRelationalStorage(boolean isRelationalStorage)... |
75 |
|
{ |
76 |
2 |
setMetaProperty("relationalStorage", isRelationalStorage ? "true" : "false"); |
77 |
|
} |
78 |
|
} |