1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
package org.xwiki.rendering.macro.dashboard; |
21 |
|
|
22 |
|
import org.xwiki.properties.annotation.PropertyDescription; |
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
@version |
28 |
|
@since |
29 |
|
|
|
|
| 66.7% |
Uncovered Elements: 4 (12) |
Complexity: 6 |
Complexity Density: 1 |
|
30 |
|
public class DashboardMacroParameters |
31 |
|
{ |
32 |
|
|
33 |
|
|
34 |
|
|
35 |
|
private String layout = "columns"; |
36 |
|
|
37 |
|
|
38 |
|
|
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
|
43 |
|
private String style = ""; |
44 |
|
|
45 |
|
|
46 |
|
|
47 |
|
|
48 |
|
|
49 |
|
private String source; |
50 |
|
|
51 |
|
|
52 |
|
@return |
53 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
54 |
9 |
public String getLayout()... |
55 |
|
{ |
56 |
9 |
return layout; |
57 |
|
} |
58 |
|
|
59 |
|
|
60 |
|
@param |
61 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
62 |
0 |
@PropertyDescription("The identifier of the layout to use for this dashboard (e.g. columns, etc). "... |
63 |
|
+ "If none specified, columns will be used.") |
64 |
|
public void setLayout(String layout) |
65 |
|
{ |
66 |
0 |
this.layout = layout; |
67 |
|
} |
68 |
|
|
69 |
|
|
70 |
|
@return |
71 |
|
@since |
72 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
73 |
6 |
public String getStyle()... |
74 |
|
{ |
75 |
6 |
return style; |
76 |
|
} |
77 |
|
|
78 |
|
|
79 |
|
@param |
80 |
|
@since |
81 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
82 |
0 |
@PropertyDescription("The identifier of the style to be used for this dashboard. No style means that the gadgets "... |
83 |
|
+ "will be rendered plain, as content of the page. \"panels\" style will render the gadgets the same as " |
84 |
|
+ "the panels. Note that this is used as the CSS class of the top level block of the dashboard, so you can " |
85 |
|
+ "pass any value to create your own dashboard style.") |
86 |
|
public void setStyle(String style) |
87 |
|
{ |
88 |
0 |
this.style = style; |
89 |
|
} |
90 |
|
|
91 |
|
|
92 |
|
@return |
93 |
|
|
94 |
|
@since |
95 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
96 |
8 |
public String getSource()... |
97 |
|
{ |
98 |
8 |
return source; |
99 |
|
} |
100 |
|
|
101 |
|
|
102 |
|
@param |
103 |
|
@since |
104 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
105 |
1 |
@PropertyDescription("The source of the dashboard macro, as a serialized document reference, where the gadget "... |
106 |
|
+ "configurations (objects) should be read from. By default the current document will be used.") |
107 |
|
public void setSource(String source) |
108 |
|
{ |
109 |
1 |
this.source = source; |
110 |
|
} |
111 |
|
} |