1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
|
22 |
|
|
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
|
33 |
|
|
34 |
|
package info.magnolia.module.googlesitemap.app.subapp.sitemapdetail; |
35 |
|
|
36 |
|
import info.magnolia.module.googlesitemap.app.subapp.sitemapdetail.base.SiteMapContentView; |
37 |
|
import info.magnolia.module.googlesitemap.app.subapp.sitemapdetail.component.SiteMapEditorLayout; |
38 |
|
import info.magnolia.ui.vaadin.actionbar.ActionbarView; |
39 |
|
|
40 |
|
import com.vaadin.shared.ui.MarginInfo; |
41 |
|
import com.vaadin.ui.Component; |
42 |
|
|
43 |
|
|
44 |
|
@link |
45 |
|
|
|
|
| 0% |
Uncovered Elements: 11 (11) |
Complexity: 4 |
Complexity Density: 0.57 |
|
46 |
|
public class SiteMapEditorViewImpl implements SiteMapEditorView { |
47 |
|
|
48 |
|
private SiteMapEditorLayout root = new SiteMapEditorLayout(); |
49 |
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
50 |
0
|
public SiteMapEditorViewImpl() {... |
51 |
0
|
root.setSizeFull(); |
52 |
0
|
root.setSpacing(true); |
53 |
0
|
root.setMargin(new MarginInfo(true, false, true, true)); |
54 |
|
} |
55 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
56 |
0
|
@Override... |
57 |
|
public void setContentView(SiteMapContentView treeView) { |
58 |
0
|
root.addComponentAsFirst(treeView.asVaadinComponent()); |
59 |
0
|
root.setExpandRatio(treeView.asVaadinComponent(), 1f); |
60 |
|
} |
61 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
62 |
0
|
@Override... |
63 |
|
public void setActionbarView(ActionbarView actionbarView) { |
64 |
0
|
root.addComponent(actionbarView.asVaadinComponent()); |
65 |
|
} |
66 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
67 |
0
|
@Override... |
68 |
|
public Component asVaadinComponent() { |
69 |
0
|
return root; |
70 |
|
} |
71 |
|
} |