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.form.field.definition;
35
36 import info.magnolia.ui.form.field.converter.IdentifierToPathConverter;
37
38
39
40
41
42 public class LinkFieldDefinition extends ConfiguredFieldDefinition {
43
44 private String targetTreeRootPath;
45 private String appName;
46 private String targetWorkspace = "website";
47 private String buttonSelectNewLabel = "field.link.select.new";
48 private String buttonSelectOtherLabel = "field.link.select.another";
49 private IdentifierToPathConverter identifierToPathConverter;
50 private ContentPreviewDefinition contentPreviewDefinition;
51 private boolean fieldEditable = true;
52 private String targetPropertyToPopulate;
53
54
55
56
57 public String getAppName() {
58 return appName;
59 }
60
61
62
63
64 public String getTargetPropertyToPopulate() {
65 return targetPropertyToPopulate;
66 }
67
68
69
70
71 public String getTargetWorkspace() {
72 return targetWorkspace;
73 }
74
75
76
77
78
79
80 public IdentifierToPathConverter getIdentifierToPathConverter() {
81 return identifierToPathConverter;
82 }
83
84
85
86
87
88
89 public ContentPreviewDefinition getContentPreviewDefinition() {
90 return contentPreviewDefinition;
91 }
92
93
94
95
96 public String getTargetTreeRootPath() {
97 return this.targetTreeRootPath;
98 }
99
100
101
102
103 public String getButtonSelectNewLabel() {
104 return buttonSelectNewLabel;
105 }
106
107
108
109
110 public String getButtonSelectOtherLabel() {
111 return buttonSelectOtherLabel;
112 }
113
114
115
116
117 public boolean isFieldEditable() {
118 return fieldEditable;
119 }
120
121 public void setTargetPropertyToPopulate(String targetPropertyToPopulate) {
122 this.targetPropertyToPopulate = targetPropertyToPopulate;
123 }
124
125 public void setTargetWorkspace(String targetWorkspace) {
126 this.targetWorkspace = targetWorkspace;
127 }
128
129
130 public void setTargetTreeRootPath(String targetTreeRootPath) {
131 this.targetTreeRootPath = targetTreeRootPath;
132 }
133
134 public void setAppName(String appName) {
135 this.appName = appName;
136 }
137
138 public void setButtonSelectNewLabel(String buttonSelectNewLabel) {
139 this.buttonSelectNewLabel = buttonSelectNewLabel;
140 }
141
142 public void setButtonSelectOtherLabel(String buttonSelectOtherLabel) {
143 this.buttonSelectOtherLabel = buttonSelectOtherLabel;
144 }
145
146 public void setIdentifierToPathConverter(IdentifierToPathConverter identifierToPathConverter) {
147 this.identifierToPathConverter = identifierToPathConverter;
148 }
149
150 public void setContentPreviewDefinition(ContentPreviewDefinition contentPreviewDefinition) {
151 this.contentPreviewDefinition = contentPreviewDefinition;
152 }
153
154 public void setFieldEditable(boolean fieldEditable) {
155 this.fieldEditable = fieldEditable;
156 }
157 }