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.ui.vaadin.gwt.client.connector;
35
36 import info.magnolia.ui.vaadin.editor.gwt.shared.PlatformType;
37 import info.magnolia.ui.vaadin.gwt.client.shared.AbstractElement;
38
39 import com.vaadin.shared.AbstractComponentState;
40
41
42
43
44 public class PageEditorState extends AbstractComponentState {
45
46 private PlatformType platformType;
47
48 private String contextPath;
49
50 private String nodePath;
51
52 private String url;
53
54 private boolean preview;
55
56 private AbstractElement selectedElement;
57
58 public void setContextPath(String contextPath) {
59 this.contextPath = contextPath;
60 }
61
62 public void setNodePath(String nodePath) {
63 this.nodePath = nodePath;
64 }
65
66 public void setPreview(boolean preview) {
67 this.preview = preview;
68 }
69
70 public String getContextPath() {
71 return contextPath;
72 }
73
74 public String getNodePath() {
75 return nodePath;
76 }
77
78 public boolean isPreview() {
79 return preview;
80 }
81
82 public String getUrl() {
83 return url;
84 }
85
86 public void setUrl(String url) {
87 this.url = url;
88 }
89
90 public PlatformType getPlatformType() {
91 return platformType;
92 }
93
94 public void setPlatformType(PlatformType platformType) {
95 this.platformType = platformType;
96 }
97
98 public AbstractElement getSelectedElement() {
99 return selectedElement;
100 }
101
102 public void setSelectedElement(AbstractElement selectedElement) {
103 this.selectedElement = selectedElement;
104 }
105 }