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 java.util.Map;
40
41 import com.vaadin.shared.AbstractComponentState;
42
43
44
45
46 public class PageEditorState extends AbstractComponentState {
47
48 private PlatformType platformType;
49
50 private String contextPath;
51
52 private String nodePath;
53
54 private String url;
55
56 private boolean preview;
57
58 private AbstractElement selectedElement;
59
60 private Map<String, String> i18nKeys;
61
62 public void setContextPath(String contextPath) {
63 this.contextPath = contextPath;
64 }
65
66 public void setNodePath(String nodePath) {
67 this.nodePath = nodePath;
68 }
69
70 public void setPreview(boolean preview) {
71 this.preview = preview;
72 }
73
74 public String getContextPath() {
75 return contextPath;
76 }
77
78 public String getNodePath() {
79 return nodePath;
80 }
81
82 public boolean isPreview() {
83 return preview;
84 }
85
86 public String getUrl() {
87 return url;
88 }
89
90 public void setUrl(String url) {
91 this.url = url;
92 }
93
94 public PlatformType getPlatformType() {
95 return platformType;
96 }
97
98 public void setPlatformType(PlatformType platformType) {
99 this.platformType = platformType;
100 }
101
102 public AbstractElement getSelectedElement() {
103 return selectedElement;
104 }
105
106 public void setSelectedElement(AbstractElement selectedElement) {
107 this.selectedElement = selectedElement;
108 }
109
110 public void setI18nKeys(Map<String, String> i18nKeys) {
111 this.i18nKeys = i18nKeys;
112 }
113
114 public Map<String, String> getI18nKeys() {
115 return i18nKeys;
116 }
117 }