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