1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.kns.web.ui; |
17 | |
|
18 | |
import org.apache.commons.lang.StringUtils; |
19 | |
import org.kuali.rice.core.util.KeyValue; |
20 | |
import org.kuali.rice.core.web.format.Formatter; |
21 | |
import org.kuali.rice.kew.util.KEWConstants; |
22 | |
import org.kuali.rice.kns.lookup.HtmlData; |
23 | |
import org.kuali.rice.krad.datadictionary.mask.Mask; |
24 | |
import org.kuali.rice.krad.util.KRADConstants; |
25 | |
import org.kuali.rice.krad.util.KRADUtils; |
26 | |
import org.kuali.rice.krad.util.ObjectUtils; |
27 | |
|
28 | |
import java.util.ArrayList; |
29 | |
import java.util.HashMap; |
30 | |
import java.util.HashSet; |
31 | |
import java.util.Iterator; |
32 | |
import java.util.List; |
33 | |
import java.util.Map; |
34 | |
import java.util.Set; |
35 | |
|
36 | |
|
37 | |
|
38 | |
|
39 | |
|
40 | |
|
41 | |
@Deprecated |
42 | |
public class Field implements java.io.Serializable, PropertyRenderingConfigElement { |
43 | |
private static final long serialVersionUID = 6549897986355019202L; |
44 | |
public static final int DEFAULT_MAXLENGTH = 30; |
45 | |
public static final int DEFAULT_SIZE = 30; |
46 | |
|
47 | |
public static final String HIDDEN = "hidden"; |
48 | |
public static final String TEXT = "text"; |
49 | |
public static final String DROPDOWN = "dropdown"; |
50 | |
public static final String MULTIBOX = "multibox"; |
51 | |
public static final String MULTISELECT = "multiselect"; |
52 | |
public static final String RADIO = "radio"; |
53 | |
public static final String QUICKFINDER = "quickFinder"; |
54 | |
public static final String LOOKUP_RESULT_ONLY = "lookupresultonly"; |
55 | |
public static final String DROPDOWN_REFRESH = "dropdown_refresh"; |
56 | |
public static final String DROPDOWN_SCRIPT = "dropdown_script"; |
57 | |
public static final String CHECKBOX = "checkbox"; |
58 | |
public static final String CURRENCY = "currency"; |
59 | |
public static final String TEXT_AREA = "textarea"; |
60 | |
public static final String FILE = "file"; |
61 | |
public static final String IMAGE_SUBMIT = "imagesubmit"; |
62 | |
public static final String CONTAINER = "container"; |
63 | |
public static final String KUALIUSER = "kualiuser"; |
64 | |
public static final String READONLY = "readOnly"; |
65 | |
public static final String EDITABLE = "editable"; |
66 | |
public static final String LOOKUP_HIDDEN = "lookuphidden"; |
67 | |
public static final String LOOKUP_READONLY = "lookupreadonly"; |
68 | |
public static final String WORKFLOW_WORKGROUP = "workflowworkgroup"; |
69 | |
public static final String MASKED = "masked"; |
70 | |
public static final String PARTIALLY_MASKED = "partiallyMasked"; |
71 | |
|
72 | |
public static final String SUB_SECTION_SEPARATOR = "subSectionSeparator"; |
73 | |
public static final String BLANK_SPACE = "blankSpace"; |
74 | |
public static final String BUTTON = "button"; |
75 | |
public static final String LINK = "link"; |
76 | |
|
77 | |
|
78 | |
public static final String DATEPICKER = "datePicker"; |
79 | |
|
80 | |
public static final Set<String> SEARCH_RESULT_DISPLAYABLE_FIELD_TYPES; |
81 | 0 | public static final Set<String> MULTI_VALUE_FIELD_TYPES = new HashSet<String>(); |
82 | |
|
83 | |
static { |
84 | 0 | SEARCH_RESULT_DISPLAYABLE_FIELD_TYPES = new HashSet<String>(); |
85 | 0 | SEARCH_RESULT_DISPLAYABLE_FIELD_TYPES.add(HIDDEN); |
86 | 0 | SEARCH_RESULT_DISPLAYABLE_FIELD_TYPES.add(TEXT); |
87 | 0 | SEARCH_RESULT_DISPLAYABLE_FIELD_TYPES.add(CURRENCY); |
88 | 0 | SEARCH_RESULT_DISPLAYABLE_FIELD_TYPES.add(DROPDOWN); |
89 | 0 | SEARCH_RESULT_DISPLAYABLE_FIELD_TYPES.add(RADIO); |
90 | 0 | SEARCH_RESULT_DISPLAYABLE_FIELD_TYPES.add(DROPDOWN_REFRESH); |
91 | 0 | SEARCH_RESULT_DISPLAYABLE_FIELD_TYPES.add(MULTIBOX); |
92 | 0 | SEARCH_RESULT_DISPLAYABLE_FIELD_TYPES.add(MULTISELECT); |
93 | |
|
94 | 0 | MULTI_VALUE_FIELD_TYPES.add(MULTIBOX); |
95 | 0 | MULTI_VALUE_FIELD_TYPES.add(MULTISELECT); |
96 | 0 | } |
97 | |
|
98 | 0 | private boolean isIndexedForSearch = true; |
99 | |
|
100 | |
|
101 | |
private String mainFieldLabel; |
102 | |
private Boolean rangeFieldInclusive; |
103 | 0 | private boolean memberOfRange = false; |
104 | 0 | private boolean allowInlineRange = false; |
105 | |
|
106 | |
|
107 | |
|
108 | 0 | private boolean isColumnVisible = true; |
109 | |
|
110 | |
|
111 | 0 | private String fieldDataType = KEWConstants.SearchableAttributeConstants.DEFAULT_SEARCHABLE_ATTRIBUTE_TYPE_NAME; |
112 | |
|
113 | |
|
114 | |
private String[] propertyValues; |
115 | |
|
116 | |
|
117 | 0 | private boolean skipBlankValidValue = false; |
118 | |
|
119 | |
|
120 | |
|
121 | |
private String fieldType; |
122 | |
|
123 | |
private String fieldLabel; |
124 | |
private String fieldHelpUrl; |
125 | |
private String propertyName; |
126 | |
private String propertyValue; |
127 | |
|
128 | |
private String alternateDisplayPropertyName; |
129 | |
private String alternateDisplayPropertyValue; |
130 | |
private String additionalDisplayPropertyName; |
131 | |
private String additionalDisplayPropertyValue; |
132 | |
|
133 | |
private List<KeyValue> fieldValidValues; |
134 | |
private String quickFinderClassNameImpl; |
135 | |
private String baseLookupUrl; |
136 | |
|
137 | |
private boolean clear; |
138 | |
private boolean dateField; |
139 | |
private String fieldConversions; |
140 | |
private boolean fieldRequired; |
141 | |
|
142 | |
private List fieldInactiveValidValues; |
143 | |
private Formatter formatter; |
144 | |
private boolean highlightField; |
145 | |
private boolean isReadOnly; |
146 | |
private String lookupParameters; |
147 | |
private int maxLength; |
148 | |
|
149 | |
private HtmlData inquiryURL; |
150 | |
private String propertyPrefix; |
151 | |
private int size; |
152 | |
private boolean upperCase; |
153 | |
private int rows; |
154 | |
private int cols; |
155 | |
private List<Row> containerRows; |
156 | |
private String fieldHelpSummary; |
157 | |
private String businessObjectClassName; |
158 | |
private String fieldHelpName; |
159 | |
private String script; |
160 | |
private String universalIdAttributeName; |
161 | |
private String universalIdValue; |
162 | |
private String userIdAttributeName; |
163 | |
private String personNameAttributeName; |
164 | |
private String personNameValue; |
165 | 0 | private String defaultValue = KRADConstants.EMPTY_STRING; |
166 | |
private boolean keyField; |
167 | |
private String displayEditMode; |
168 | |
private Mask displayMask; |
169 | |
private String displayMaskValue; |
170 | |
private String encryptedValue; |
171 | |
private boolean secure; |
172 | |
private String webOnBlurHandler; |
173 | |
private String webOnBlurHandlerCallback; |
174 | 0 | protected List<String> webUILeaveFieldFunctionParameters = new ArrayList<String>(); |
175 | |
private String styleClass; |
176 | |
private int formattedMaxLength; |
177 | |
private String containerName; |
178 | |
private String containerElementName; |
179 | |
private List<Field> containerDisplayFields; |
180 | |
private boolean isDatePicker; |
181 | |
private boolean ranged; |
182 | |
|
183 | |
private boolean expandedTextArea; |
184 | |
private String referencesToRefresh; |
185 | |
private int numberOfColumnsForCollection; |
186 | |
public String cellAlign; |
187 | |
private String inquiryParameters; |
188 | |
private boolean fieldDirectInquiryEnabled; |
189 | |
|
190 | |
public boolean fieldLevelHelpEnabled; |
191 | |
|
192 | |
public boolean fieldLevelHelpDisabled; |
193 | |
public String fieldLevelHelpUrl; |
194 | |
|
195 | |
private String imageSrc; |
196 | |
private String target; |
197 | |
private String hrefText; |
198 | |
|
199 | |
private boolean triggerOnChange; |
200 | |
|
201 | |
|
202 | |
|
203 | |
|
204 | |
|
205 | 0 | public Field() { |
206 | 0 | this.fieldLevelHelpEnabled = false; |
207 | 0 | this.triggerOnChange = false; |
208 | 0 | } |
209 | |
|
210 | |
|
211 | |
|
212 | |
|
213 | |
|
214 | |
|
215 | |
|
216 | 0 | public Field(String propertyName, String fieldLabel) { |
217 | 0 | this.propertyName = propertyName; |
218 | 0 | this.fieldLabel = fieldLabel; |
219 | 0 | this.isReadOnly = false; |
220 | 0 | this.upperCase = false; |
221 | 0 | this.keyField = false; |
222 | 0 | this.secure = false; |
223 | 0 | this.fieldLevelHelpEnabled = false; |
224 | 0 | this.triggerOnChange = false; |
225 | 0 | } |
226 | |
|
227 | |
|
228 | |
|
229 | |
|
230 | |
|
231 | |
|
232 | |
|
233 | |
|
234 | |
|
235 | |
|
236 | |
|
237 | |
|
238 | |
|
239 | |
|
240 | |
|
241 | 0 | public Field(String fieldLabel, String fieldHelpUrl, String fieldType, boolean clear, String propertyName, String propertyValue, boolean fieldRequired, boolean dateField, List<KeyValue> fieldValidValues, String quickFinderClassNameImpl) { |
242 | 0 | this.dateField = dateField; |
243 | 0 | this.fieldLabel = fieldLabel; |
244 | 0 | this.fieldHelpUrl = fieldHelpUrl; |
245 | 0 | this.fieldType = fieldType; |
246 | 0 | this.fieldRequired = fieldRequired; |
247 | 0 | this.clear = clear; |
248 | 0 | this.propertyName = propertyName; |
249 | 0 | this.propertyValue = propertyValue; |
250 | 0 | this.fieldValidValues = fieldValidValues; |
251 | 0 | this.quickFinderClassNameImpl = quickFinderClassNameImpl; |
252 | 0 | this.size = DEFAULT_SIZE; |
253 | 0 | this.maxLength = DEFAULT_MAXLENGTH; |
254 | 0 | this.isReadOnly = false; |
255 | 0 | this.upperCase = false; |
256 | 0 | this.keyField = false; |
257 | 0 | this.fieldLevelHelpEnabled = false; |
258 | 0 | this.triggerOnChange = false; |
259 | 0 | } |
260 | |
|
261 | |
|
262 | |
|
263 | |
|
264 | |
|
265 | |
|
266 | |
|
267 | |
|
268 | |
|
269 | |
|
270 | |
|
271 | |
|
272 | |
|
273 | |
|
274 | |
|
275 | |
|
276 | |
|
277 | 0 | public Field(String fieldLabel, String fieldHelpUrl, String fieldType, boolean clear, String propertyName, String propertyValue, boolean fieldRequired, boolean dateField, List<KeyValue> fieldValidValues, String quickFinderClassNameImpl, int size, int maxLength) { |
278 | 0 | this.dateField = dateField; |
279 | 0 | this.fieldLabel = fieldLabel; |
280 | 0 | this.fieldHelpUrl = fieldHelpUrl; |
281 | 0 | this.fieldType = fieldType; |
282 | 0 | this.fieldRequired = fieldRequired; |
283 | 0 | this.clear = clear; |
284 | 0 | this.propertyName = propertyName; |
285 | 0 | this.propertyValue = propertyValue; |
286 | 0 | this.fieldValidValues = fieldValidValues; |
287 | 0 | this.upperCase = false; |
288 | 0 | this.quickFinderClassNameImpl = quickFinderClassNameImpl; |
289 | 0 | if (size <= 0) { |
290 | 0 | this.size = DEFAULT_SIZE; |
291 | |
} else { |
292 | 0 | this.size = size; |
293 | |
} |
294 | 0 | if (size <= 0) { |
295 | 0 | this.size = DEFAULT_MAXLENGTH; |
296 | |
} else { |
297 | 0 | this.maxLength = maxLength; |
298 | |
} |
299 | 0 | this.isReadOnly = false; |
300 | 0 | this.keyField = false; |
301 | 0 | this.fieldLevelHelpEnabled = false; |
302 | 0 | this.triggerOnChange = false; |
303 | 0 | } |
304 | |
|
305 | |
|
306 | |
|
307 | |
|
308 | |
|
309 | |
|
310 | |
|
311 | |
public static boolean isInputField(String fieldType) { |
312 | 0 | if (StringUtils.isBlank(fieldType)) { |
313 | 0 | return false; |
314 | |
} |
315 | |
|
316 | 0 | if (fieldType.equals(Field.DROPDOWN) || fieldType.equals(Field.DROPDOWN_REFRESH) || fieldType.equals(Field.TEXT) || fieldType.equals(Field.RADIO) || fieldType.equals(Field.CURRENCY) || fieldType.equals(Field.KUALIUSER) || fieldType.equals(Field.DROPDOWN_SCRIPT) || fieldType.equals(LOOKUP_READONLY) || fieldType.equals(TEXT_AREA)) { |
317 | 0 | return true; |
318 | |
} else { |
319 | 0 | return false; |
320 | |
} |
321 | |
|
322 | |
} |
323 | |
|
324 | |
|
325 | |
|
326 | |
|
327 | |
public String getImageSrc() { |
328 | 0 | return this.imageSrc; |
329 | |
} |
330 | |
|
331 | |
|
332 | |
|
333 | |
|
334 | |
public void setImageSrc(String imageSrc) { |
335 | 0 | this.imageSrc = imageSrc; |
336 | 0 | } |
337 | |
|
338 | |
|
339 | |
|
340 | |
|
341 | |
|
342 | |
public String getTarget() { |
343 | 0 | return this.target; |
344 | |
} |
345 | |
|
346 | |
|
347 | |
|
348 | |
|
349 | |
public void setTarget(String target) { |
350 | 0 | this.target = target; |
351 | 0 | } |
352 | |
|
353 | |
|
354 | |
|
355 | |
|
356 | |
public String getHrefText() { |
357 | 0 | return this.hrefText; |
358 | |
} |
359 | |
|
360 | |
|
361 | |
|
362 | |
|
363 | |
public void setHrefText(String hrefText) { |
364 | 0 | this.hrefText = hrefText; |
365 | 0 | } |
366 | |
|
367 | |
|
368 | |
|
369 | |
|
370 | |
|
371 | |
private String multipleValueLookupClassLabel; |
372 | |
|
373 | |
|
374 | |
|
375 | |
private String multipleValueLookupClassName; |
376 | |
|
377 | |
|
378 | |
|
379 | |
|
380 | |
private String multipleValueLookedUpCollectionName; |
381 | |
|
382 | |
public HtmlData getInquiryURL() { |
383 | 0 | return inquiryURL; |
384 | |
} |
385 | |
|
386 | |
public void setInquiryURL(HtmlData propertyURL) { |
387 | 0 | this.inquiryURL = propertyURL; |
388 | 0 | } |
389 | |
|
390 | |
public int getNumberOfColumnsForCollection() { |
391 | 0 | return numberOfColumnsForCollection; |
392 | |
} |
393 | |
|
394 | |
public void setNumberOfColumnsForCollection(int numberOfColumnsForCollection) { |
395 | 0 | this.numberOfColumnsForCollection = numberOfColumnsForCollection; |
396 | 0 | } |
397 | |
|
398 | |
public boolean isDatePicker() { |
399 | 0 | return isDatePicker; |
400 | |
} |
401 | |
|
402 | |
public void setDatePicker(boolean isDatePicker) { |
403 | 0 | this.isDatePicker = isDatePicker; |
404 | 0 | } |
405 | |
|
406 | |
public boolean isRanged() { |
407 | 0 | return this.ranged; |
408 | |
} |
409 | |
|
410 | |
public void setRanged(boolean ranged) { |
411 | 0 | this.ranged = ranged; |
412 | 0 | } |
413 | |
|
414 | |
public boolean isExpandedTextArea() { |
415 | 0 | return expandedTextArea; |
416 | |
} |
417 | |
|
418 | |
public void setExpandedTextArea(boolean expandedTextArea) { |
419 | 0 | this.expandedTextArea = expandedTextArea; |
420 | 0 | } |
421 | |
|
422 | |
|
423 | |
|
424 | |
|
425 | |
public String getDefaultValue() { |
426 | 0 | return defaultValue; |
427 | |
} |
428 | |
|
429 | |
|
430 | |
|
431 | |
|
432 | |
public void setDefaultValue(String defaultValue) { |
433 | 0 | this.defaultValue = defaultValue; |
434 | 0 | } |
435 | |
|
436 | |
public boolean containsBOData() { |
437 | 0 | if (StringUtils.isNotBlank(this.propertyName)) { |
438 | 0 | return true; |
439 | |
} else { |
440 | 0 | return false; |
441 | |
} |
442 | |
} |
443 | |
|
444 | |
|
445 | |
|
446 | |
|
447 | |
public String getCHECKBOX() { |
448 | 0 | return CHECKBOX; |
449 | |
} |
450 | |
|
451 | |
|
452 | |
|
453 | |
|
454 | |
public String getCONTAINER() { |
455 | 0 | return CONTAINER; |
456 | |
} |
457 | |
|
458 | |
|
459 | |
|
460 | |
|
461 | |
public String getDROPDOWN() { |
462 | 0 | return DROPDOWN; |
463 | |
} |
464 | |
|
465 | |
|
466 | |
|
467 | |
|
468 | |
public String getTEXT_AREA() { |
469 | 0 | return TEXT_AREA; |
470 | |
} |
471 | |
|
472 | |
|
473 | |
|
474 | |
|
475 | |
public String getDROPDOWN_REFRESH() { |
476 | 0 | return DROPDOWN_REFRESH; |
477 | |
} |
478 | |
|
479 | |
|
480 | |
|
481 | |
|
482 | |
public String getDROPDOWN_SCRIPT() { |
483 | 0 | return DROPDOWN_SCRIPT; |
484 | |
} |
485 | |
|
486 | |
|
487 | |
|
488 | |
|
489 | |
public String getMULTISELECT() { |
490 | 0 | return MULTISELECT; |
491 | |
} |
492 | |
|
493 | |
|
494 | |
|
495 | |
|
496 | |
public String getKUALIUSER() { |
497 | 0 | return KUALIUSER; |
498 | |
} |
499 | |
|
500 | |
|
501 | |
|
502 | |
|
503 | |
public String getFILE() { |
504 | 0 | return FILE; |
505 | |
} |
506 | |
|
507 | |
|
508 | |
|
509 | |
|
510 | |
public String getSUB_SECTION_SEPARATOR() { |
511 | 0 | return SUB_SECTION_SEPARATOR; |
512 | |
} |
513 | |
|
514 | |
|
515 | |
|
516 | |
|
517 | |
public String getBLANK_SPACE() { |
518 | 0 | return BLANK_SPACE; |
519 | |
} |
520 | |
|
521 | |
|
522 | |
|
523 | |
|
524 | |
public String getBUTTON() { |
525 | 0 | return BUTTON; |
526 | |
} |
527 | |
|
528 | |
|
529 | |
|
530 | |
|
531 | |
public String getLINK() { |
532 | 0 | return LINK; |
533 | |
} |
534 | |
|
535 | |
|
536 | |
|
537 | |
|
538 | |
|
539 | |
public String getFieldConversions() { |
540 | 0 | return fieldConversions; |
541 | |
} |
542 | |
|
543 | |
|
544 | |
public Map<String, String> getFieldConversionMap() { |
545 | 0 | Map<String, String> fieldConversionMap = new HashMap<String, String>(); |
546 | 0 | if (!StringUtils.isBlank(fieldConversions)) { |
547 | 0 | String[] splitFieldConversions = fieldConversions.split(KRADConstants.FIELD_CONVERSIONS_SEPARATOR); |
548 | 0 | for (String fieldConversion : splitFieldConversions) { |
549 | 0 | if (!StringUtils.isBlank(fieldConversion)) { |
550 | 0 | String[] splitFieldConversion = fieldConversion.split(KRADConstants.FIELD_CONVERSION_PAIR_SEPARATOR, 2); |
551 | 0 | String originalFieldName = splitFieldConversion[0]; |
552 | 0 | String convertedFieldName = ""; |
553 | 0 | if (splitFieldConversion.length > 1) { |
554 | 0 | convertedFieldName = splitFieldConversion[1]; |
555 | |
} |
556 | 0 | fieldConversionMap.put(originalFieldName, convertedFieldName); |
557 | |
} |
558 | |
} |
559 | |
} |
560 | 0 | return fieldConversionMap; |
561 | |
} |
562 | |
|
563 | |
|
564 | |
|
565 | |
|
566 | |
|
567 | |
public String getFieldHelpUrl() { |
568 | 0 | return fieldHelpUrl; |
569 | |
} |
570 | |
|
571 | |
|
572 | |
|
573 | |
|
574 | |
public String getFieldLabel() { |
575 | 0 | return fieldLabel; |
576 | |
} |
577 | |
|
578 | |
|
579 | |
|
580 | |
|
581 | |
public String getFieldType() { |
582 | 0 | return fieldType; |
583 | |
} |
584 | |
|
585 | |
|
586 | |
|
587 | |
|
588 | |
public List<KeyValue> getFieldValidValues() { |
589 | 0 | return fieldValidValues; |
590 | |
} |
591 | |
|
592 | |
|
593 | |
|
594 | |
|
595 | |
|
596 | |
@Override |
597 | |
public Formatter getFormatter() { |
598 | 0 | return formatter; |
599 | |
} |
600 | |
|
601 | |
|
602 | |
|
603 | |
|
604 | |
public String getHIDDEN() { |
605 | 0 | return HIDDEN; |
606 | |
} |
607 | |
|
608 | |
|
609 | |
|
610 | |
|
611 | |
|
612 | |
public String getLookupParameters() { |
613 | 0 | return lookupParameters; |
614 | |
} |
615 | |
|
616 | |
|
617 | |
|
618 | |
|
619 | |
public int getMaxLength() { |
620 | 0 | return maxLength; |
621 | |
} |
622 | |
|
623 | |
|
624 | |
|
625 | |
|
626 | |
@Override |
627 | |
public String getPropertyName() { |
628 | 0 | return propertyName; |
629 | |
} |
630 | |
|
631 | |
|
632 | |
|
633 | |
|
634 | |
@Override |
635 | |
public String getPropertyValue() { |
636 | 0 | if (propertyValue == null) { |
637 | 0 | propertyValue = KRADConstants.EMPTY_STRING; |
638 | |
} |
639 | |
|
640 | 0 | return propertyValue; |
641 | |
} |
642 | |
|
643 | |
|
644 | |
|
645 | |
|
646 | |
|
647 | |
|
648 | |
|
649 | |
public String getPropertyPrefix() { |
650 | 0 | return propertyPrefix; |
651 | |
} |
652 | |
|
653 | |
|
654 | |
|
655 | |
|
656 | |
|
657 | |
|
658 | |
public void setPropertyPrefix(String propertyPrefix) { |
659 | 0 | this.propertyPrefix = propertyPrefix; |
660 | 0 | } |
661 | |
|
662 | |
|
663 | |
|
664 | |
|
665 | |
public String getQUICKFINDER() { |
666 | 0 | return QUICKFINDER; |
667 | |
} |
668 | |
|
669 | |
|
670 | |
|
671 | |
|
672 | |
public String getQuickFinderClassNameImpl() { |
673 | 0 | return quickFinderClassNameImpl; |
674 | |
} |
675 | |
|
676 | |
|
677 | |
|
678 | |
|
679 | |
public String getRADIO() { |
680 | 0 | return RADIO; |
681 | |
} |
682 | |
|
683 | |
|
684 | |
|
685 | |
|
686 | |
public int getSize() { |
687 | 0 | return size; |
688 | |
} |
689 | |
|
690 | |
|
691 | |
|
692 | |
|
693 | |
public String getTEXT() { |
694 | 0 | return TEXT; |
695 | |
} |
696 | |
|
697 | |
public String getCURRENCY() { |
698 | 0 | return CURRENCY; |
699 | |
} |
700 | |
|
701 | |
|
702 | |
|
703 | |
|
704 | |
public String getIMAGE_SUBMIT() { |
705 | 0 | return IMAGE_SUBMIT; |
706 | |
} |
707 | |
|
708 | |
|
709 | |
|
710 | |
|
711 | |
public String getLOOKUP_HIDDEN() { |
712 | 0 | return LOOKUP_HIDDEN; |
713 | |
} |
714 | |
|
715 | |
|
716 | |
|
717 | |
|
718 | |
public String getLOOKUP_READONLY() { |
719 | 0 | return LOOKUP_READONLY; |
720 | |
} |
721 | |
|
722 | |
|
723 | |
|
724 | |
|
725 | |
public String getWORKFLOW_WORKGROUP() { |
726 | 0 | return WORKFLOW_WORKGROUP; |
727 | |
} |
728 | |
|
729 | |
|
730 | |
|
731 | |
|
732 | |
|
733 | |
public boolean isClear() { |
734 | 0 | return clear; |
735 | |
} |
736 | |
|
737 | |
|
738 | |
|
739 | |
|
740 | |
public boolean isDateField() { |
741 | 0 | return dateField; |
742 | |
} |
743 | |
|
744 | |
|
745 | |
|
746 | |
|
747 | |
public boolean isFieldRequired() { |
748 | 0 | return fieldRequired; |
749 | |
} |
750 | |
|
751 | |
|
752 | |
|
753 | |
|
754 | |
|
755 | |
public boolean isHighlightField() { |
756 | 0 | return highlightField; |
757 | |
} |
758 | |
|
759 | |
|
760 | |
|
761 | |
|
762 | |
public boolean isReadOnly() { |
763 | 0 | return isReadOnly; |
764 | |
} |
765 | |
|
766 | |
|
767 | |
|
768 | |
|
769 | |
public boolean isUpperCase() { |
770 | 0 | return upperCase; |
771 | |
} |
772 | |
|
773 | |
|
774 | |
|
775 | |
|
776 | |
public void setClear(boolean clear) { |
777 | 0 | this.clear = clear; |
778 | 0 | } |
779 | |
|
780 | |
|
781 | |
|
782 | |
|
783 | |
public void setDateField(boolean dateField) { |
784 | 0 | this.dateField = dateField; |
785 | 0 | } |
786 | |
|
787 | |
|
788 | |
|
789 | |
|
790 | |
public void setFieldConversions(Map<String,String> fieldConversionsMap) { |
791 | 0 | List<String> keyValuePairStrings = new ArrayList<String>(); |
792 | 0 | for (String key : fieldConversionsMap.keySet()) { |
793 | 0 | String mappedField = fieldConversionsMap.get(key); |
794 | 0 | keyValuePairStrings.add(key + ":" + mappedField) ; |
795 | 0 | } |
796 | 0 | String commaDelimitedConversions = StringUtils.join(keyValuePairStrings,","); |
797 | 0 | setFieldConversions(commaDelimitedConversions ); |
798 | 0 | } |
799 | |
|
800 | |
|
801 | |
|
802 | |
|
803 | |
|
804 | |
public void setFieldConversions(String fieldConversions) { |
805 | 0 | this.fieldConversions = fieldConversions; |
806 | 0 | } |
807 | |
|
808 | |
public void appendFieldConversions(String fieldConversions) { |
809 | 0 | if (StringUtils.isNotBlank(fieldConversions)) { |
810 | 0 | this.fieldConversions = this.fieldConversions + "," + fieldConversions; |
811 | |
} |
812 | 0 | } |
813 | |
|
814 | |
|
815 | |
|
816 | |
|
817 | |
public void setFieldHelpUrl(String fieldHelpUrl) { |
818 | 0 | this.fieldHelpUrl = fieldHelpUrl; |
819 | 0 | } |
820 | |
|
821 | |
|
822 | |
|
823 | |
|
824 | |
public void setFieldLabel(String fieldLabel) { |
825 | 0 | this.fieldLabel = fieldLabel; |
826 | 0 | } |
827 | |
|
828 | |
|
829 | |
|
830 | |
|
831 | |
public void setFieldRequired(boolean fieldRequired) { |
832 | 0 | this.fieldRequired = fieldRequired; |
833 | 0 | } |
834 | |
|
835 | |
|
836 | |
|
837 | |
|
838 | |
public void setFieldType(String fieldType) { |
839 | 0 | this.fieldType = fieldType; |
840 | 0 | } |
841 | |
|
842 | |
|
843 | |
|
844 | |
|
845 | |
public void setFieldValidValues(List<KeyValue> fieldValidValues) { |
846 | 0 | this.fieldValidValues = fieldValidValues; |
847 | 0 | } |
848 | |
|
849 | |
public boolean getHasBlankValidValue() { |
850 | 0 | for (KeyValue keyLabel : fieldValidValues) { |
851 | 0 | if (keyLabel.getKey().equals("")) { |
852 | 0 | return true; |
853 | |
} |
854 | |
} |
855 | 0 | return false; |
856 | |
} |
857 | |
|
858 | |
|
859 | |
|
860 | |
|
861 | |
@Override |
862 | |
public void setFormatter(Formatter formatter) { |
863 | 0 | this.formatter = formatter; |
864 | 0 | } |
865 | |
|
866 | |
|
867 | |
|
868 | |
|
869 | |
|
870 | |
public void setHighlightField(boolean highlightField) { |
871 | 0 | this.highlightField = highlightField; |
872 | 0 | } |
873 | |
|
874 | |
|
875 | |
|
876 | |
|
877 | |
public void setLookupParameters(Map lookupParametersMap) { |
878 | 0 | String lookupParameterString = ""; |
879 | 0 | for (Iterator iter = lookupParametersMap.keySet().iterator(); iter.hasNext();) { |
880 | 0 | String field = (String) iter.next(); |
881 | 0 | String mappedField = (String) lookupParametersMap.get(field); |
882 | 0 | lookupParameterString += field + ":" + mappedField; |
883 | 0 | if (iter.hasNext()) { |
884 | 0 | lookupParameterString += ","; |
885 | |
} |
886 | 0 | } |
887 | 0 | setLookupParameters(lookupParameterString); |
888 | 0 | } |
889 | |
|
890 | |
|
891 | |
|
892 | |
|
893 | |
|
894 | |
public void setLookupParameters(String lookupParameters) { |
895 | 0 | this.lookupParameters = lookupParameters; |
896 | 0 | } |
897 | |
|
898 | |
|
899 | |
|
900 | |
|
901 | |
|
902 | |
|
903 | |
public void appendLookupParameters(String lookupParameters) { |
904 | 0 | if (StringUtils.isNotBlank(lookupParameters)) { |
905 | 0 | if (StringUtils.isBlank(this.lookupParameters)) { |
906 | 0 | this.lookupParameters = lookupParameters; |
907 | |
} else { |
908 | 0 | this.lookupParameters = this.lookupParameters + "," + lookupParameters; |
909 | |
} |
910 | |
} |
911 | 0 | } |
912 | |
|
913 | |
|
914 | |
|
915 | |
|
916 | |
public void setMaxLength(int maxLength) { |
917 | 0 | this.maxLength = maxLength; |
918 | 0 | } |
919 | |
|
920 | |
|
921 | |
|
922 | |
|
923 | |
@Override |
924 | |
public void setPropertyName(String propertyName) { |
925 | 0 | String newPropertyName = KRADConstants.EMPTY_STRING; |
926 | 0 | if (propertyName != null) { |
927 | 0 | newPropertyName = propertyName; |
928 | |
} |
929 | 0 | this.propertyName = newPropertyName; |
930 | 0 | } |
931 | |
|
932 | |
|
933 | |
|
934 | |
|
935 | |
public void setPropertyValue(Object propertyValue) { |
936 | 0 | String newPropertyValue = ObjectUtils.formatPropertyValue(propertyValue); |
937 | |
|
938 | 0 | if (isUpperCase()) { |
939 | 0 | newPropertyValue = newPropertyValue.toUpperCase(); |
940 | |
} |
941 | |
|
942 | 0 | this.propertyValue = newPropertyValue; |
943 | 0 | } |
944 | |
|
945 | |
|
946 | |
|
947 | |
|
948 | |
public void setQuickFinderClassNameImpl(String quickFinderClassNameImpl) { |
949 | 0 | this.quickFinderClassNameImpl = quickFinderClassNameImpl; |
950 | 0 | } |
951 | |
|
952 | |
|
953 | |
|
954 | |
|
955 | |
public void setReadOnly(boolean isReadOnly) { |
956 | 0 | this.isReadOnly = isReadOnly; |
957 | 0 | } |
958 | |
|
959 | |
|
960 | |
|
961 | |
|
962 | |
public void setSize(int size) { |
963 | 0 | this.size = size; |
964 | 0 | } |
965 | |
|
966 | |
|
967 | |
|
968 | |
|
969 | |
public void setUpperCase(boolean upperCase) { |
970 | 0 | this.upperCase = upperCase; |
971 | 0 | } |
972 | |
|
973 | |
|
974 | |
|
975 | |
|
976 | |
|
977 | |
public int getCols() { |
978 | 0 | return cols; |
979 | |
} |
980 | |
|
981 | |
|
982 | |
|
983 | |
|
984 | |
|
985 | |
public void setCols(int cols) { |
986 | 0 | this.cols = cols; |
987 | 0 | } |
988 | |
|
989 | |
|
990 | |
|
991 | |
|
992 | |
|
993 | |
public int getRows() { |
994 | 0 | return rows; |
995 | |
} |
996 | |
|
997 | |
|
998 | |
|
999 | |
|
1000 | |
|
1001 | |
public void setRows(int rows) { |
1002 | 0 | this.rows = rows; |
1003 | 0 | } |
1004 | |
|
1005 | |
|
1006 | |
|
1007 | |
|
1008 | |
|
1009 | |
public List<Row> getContainerRows() { |
1010 | 0 | return containerRows; |
1011 | |
} |
1012 | |
|
1013 | |
|
1014 | |
|
1015 | |
|
1016 | |
|
1017 | |
public void setContainerRows(List<Row> containerRows) { |
1018 | 0 | this.containerRows = containerRows; |
1019 | 0 | } |
1020 | |
|
1021 | |
|
1022 | |
|
1023 | |
|
1024 | |
|
1025 | |
public String getBusinessObjectClassName() { |
1026 | 0 | return businessObjectClassName; |
1027 | |
} |
1028 | |
|
1029 | |
|
1030 | |
|
1031 | |
|
1032 | |
|
1033 | |
public void setBusinessObjectClassName(String businessObjectClassName) { |
1034 | 0 | this.businessObjectClassName = businessObjectClassName; |
1035 | 0 | } |
1036 | |
|
1037 | |
|
1038 | |
|
1039 | |
|
1040 | |
|
1041 | |
public String getFieldHelpSummary() { |
1042 | 0 | return fieldHelpSummary; |
1043 | |
} |
1044 | |
|
1045 | |
|
1046 | |
|
1047 | |
|
1048 | |
|
1049 | |
public void setFieldHelpSummary(String fieldHelpSummary) { |
1050 | 0 | this.fieldHelpSummary = fieldHelpSummary; |
1051 | 0 | } |
1052 | |
|
1053 | |
|
1054 | |
|
1055 | |
|
1056 | |
|
1057 | |
public String getFieldHelpName() { |
1058 | 0 | return fieldHelpName; |
1059 | |
} |
1060 | |
|
1061 | |
|
1062 | |
|
1063 | |
|
1064 | |
|
1065 | |
public void setFieldHelpName(String fieldHelpName) { |
1066 | 0 | this.fieldHelpName = fieldHelpName; |
1067 | 0 | } |
1068 | |
|
1069 | |
|
1070 | |
|
1071 | |
|
1072 | |
|
1073 | |
|
1074 | |
public String getScript() { |
1075 | 0 | return script; |
1076 | |
} |
1077 | |
|
1078 | |
|
1079 | |
|
1080 | |
|
1081 | |
|
1082 | |
|
1083 | |
public void setScript(String script) { |
1084 | 0 | this.script = script; |
1085 | 0 | } |
1086 | |
|
1087 | |
|
1088 | |
|
1089 | |
|
1090 | |
|
1091 | |
|
1092 | |
public String getPersonNameAttributeName() { |
1093 | 0 | return personNameAttributeName; |
1094 | |
} |
1095 | |
|
1096 | |
|
1097 | |
|
1098 | |
|
1099 | |
|
1100 | |
|
1101 | |
public void setPersonNameAttributeName(String personNameAttributeName) { |
1102 | 0 | this.personNameAttributeName = personNameAttributeName; |
1103 | 0 | } |
1104 | |
|
1105 | |
|
1106 | |
|
1107 | |
|
1108 | |
|
1109 | |
|
1110 | |
public String getUniversalIdAttributeName() { |
1111 | 0 | return universalIdAttributeName; |
1112 | |
} |
1113 | |
|
1114 | |
|
1115 | |
|
1116 | |
|
1117 | |
|
1118 | |
|
1119 | |
public void setUniversalIdAttributeName(String universalIdAttributeName) { |
1120 | 0 | this.universalIdAttributeName = universalIdAttributeName; |
1121 | 0 | } |
1122 | |
|
1123 | |
|
1124 | |
|
1125 | |
|
1126 | |
|
1127 | |
|
1128 | |
public String getUserIdAttributeName() { |
1129 | 0 | return userIdAttributeName; |
1130 | |
} |
1131 | |
|
1132 | |
|
1133 | |
|
1134 | |
|
1135 | |
|
1136 | |
|
1137 | |
public void setUserIdAttributeName(String userIdAttributeName) { |
1138 | 0 | this.userIdAttributeName = userIdAttributeName; |
1139 | 0 | } |
1140 | |
|
1141 | |
|
1142 | |
|
1143 | |
|
1144 | |
|
1145 | |
|
1146 | |
public boolean isKeyField() { |
1147 | 0 | return keyField; |
1148 | |
} |
1149 | |
|
1150 | |
|
1151 | |
|
1152 | |
|
1153 | |
|
1154 | |
|
1155 | |
public void setKeyField(boolean keyField) { |
1156 | 0 | this.keyField = keyField; |
1157 | 0 | } |
1158 | |
|
1159 | |
|
1160 | |
|
1161 | |
|
1162 | |
|
1163 | |
|
1164 | |
|
1165 | |
public String getDisplayEditMode() { |
1166 | 0 | return displayEditMode; |
1167 | |
} |
1168 | |
|
1169 | |
|
1170 | |
|
1171 | |
|
1172 | |
|
1173 | |
|
1174 | |
public void setDisplayEditMode(String displayEditMode) { |
1175 | 0 | this.displayEditMode = displayEditMode; |
1176 | 0 | } |
1177 | |
|
1178 | |
|
1179 | |
|
1180 | |
|
1181 | |
|
1182 | |
|
1183 | |
public Mask getDisplayMask() { |
1184 | 0 | return displayMask; |
1185 | |
} |
1186 | |
|
1187 | |
|
1188 | |
|
1189 | |
|
1190 | |
|
1191 | |
|
1192 | |
public void setDisplayMask(Mask displayMask) { |
1193 | 0 | this.displayMask = displayMask; |
1194 | 0 | } |
1195 | |
|
1196 | |
|
1197 | |
|
1198 | |
|
1199 | |
|
1200 | |
|
1201 | |
public String getDisplayMaskValue() { |
1202 | 0 | return displayMaskValue; |
1203 | |
} |
1204 | |
|
1205 | |
|
1206 | |
|
1207 | |
|
1208 | |
|
1209 | |
|
1210 | |
public void setDisplayMaskValue(String displayMaskValue) { |
1211 | 0 | this.displayMaskValue = displayMaskValue; |
1212 | 0 | } |
1213 | |
|
1214 | |
|
1215 | |
|
1216 | |
|
1217 | |
|
1218 | |
|
1219 | |
public String getEncryptedValue() { |
1220 | 0 | return encryptedValue; |
1221 | |
} |
1222 | |
|
1223 | |
|
1224 | |
|
1225 | |
|
1226 | |
|
1227 | |
|
1228 | |
public void setEncryptedValue(String encryptedValue) { |
1229 | 0 | this.encryptedValue = encryptedValue; |
1230 | 0 | } |
1231 | |
|
1232 | |
|
1233 | |
|
1234 | |
|
1235 | |
|
1236 | |
|
1237 | |
public boolean isSecure() { |
1238 | 0 | return secure; |
1239 | |
} |
1240 | |
|
1241 | |
|
1242 | |
|
1243 | |
|
1244 | |
|
1245 | |
|
1246 | |
public void setSecure(boolean secure) { |
1247 | 0 | this.secure = secure; |
1248 | 0 | } |
1249 | |
|
1250 | |
|
1251 | |
|
1252 | |
|
1253 | |
|
1254 | |
|
1255 | |
|
1256 | |
public String getWebOnBlurHandler() { |
1257 | 0 | return webOnBlurHandler; |
1258 | |
} |
1259 | |
|
1260 | |
public void setWebOnBlurHandler(String webOnBlurHandler) { |
1261 | 0 | this.webOnBlurHandler = webOnBlurHandler; |
1262 | 0 | } |
1263 | |
|
1264 | |
|
1265 | |
|
1266 | |
|
1267 | |
|
1268 | |
|
1269 | |
|
1270 | |
public String getWebOnBlurHandlerCallback() { |
1271 | 0 | return webOnBlurHandlerCallback; |
1272 | |
} |
1273 | |
|
1274 | |
public void setWebOnBlurHandlerCallback(String webOnBlurHandlerCallback) { |
1275 | 0 | this.webOnBlurHandlerCallback = webOnBlurHandlerCallback; |
1276 | 0 | } |
1277 | |
|
1278 | |
|
1279 | |
|
1280 | |
|
1281 | |
|
1282 | |
|
1283 | |
@Override |
1284 | |
public void setPropertyValue(String propertyValue) { |
1285 | 0 | this.propertyValue = propertyValue; |
1286 | 0 | } |
1287 | |
|
1288 | |
@Override |
1289 | |
public String toString() { |
1290 | 0 | return "[" + getFieldType() + "] " + getPropertyName() + " = '" + getPropertyValue() + "'"; |
1291 | |
} |
1292 | |
|
1293 | |
public String getStyleClass() { |
1294 | 0 | return styleClass; |
1295 | |
} |
1296 | |
|
1297 | |
public void setStyleClass(String styleClass) { |
1298 | 0 | this.styleClass = styleClass; |
1299 | 0 | } |
1300 | |
|
1301 | |
public int getFormattedMaxLength() { |
1302 | 0 | return formattedMaxLength; |
1303 | |
} |
1304 | |
|
1305 | |
public void setFormattedMaxLength(int formattedMaxLength) { |
1306 | 0 | this.formattedMaxLength = formattedMaxLength; |
1307 | 0 | } |
1308 | |
|
1309 | |
public String getContainerName() { |
1310 | 0 | return containerName; |
1311 | |
} |
1312 | |
|
1313 | |
public void setContainerName(String containerName) { |
1314 | 0 | this.containerName = containerName; |
1315 | 0 | } |
1316 | |
|
1317 | |
|
1318 | |
|
1319 | |
|
1320 | |
|
1321 | |
|
1322 | |
public String getContainerElementName() { |
1323 | 0 | return containerElementName; |
1324 | |
} |
1325 | |
|
1326 | |
|
1327 | |
|
1328 | |
|
1329 | |
|
1330 | |
|
1331 | |
public void setContainerElementName(String containerElementName) { |
1332 | 0 | this.containerElementName = containerElementName; |
1333 | 0 | } |
1334 | |
|
1335 | |
|
1336 | |
|
1337 | |
|
1338 | |
|
1339 | |
|
1340 | |
public List<Field> getContainerDisplayFields() { |
1341 | 0 | return containerDisplayFields; |
1342 | |
} |
1343 | |
|
1344 | |
|
1345 | |
|
1346 | |
|
1347 | |
|
1348 | |
|
1349 | |
public void setContainerDisplayFields(List<Field> containerDisplayFields) { |
1350 | 0 | this.containerDisplayFields = containerDisplayFields; |
1351 | 0 | } |
1352 | |
|
1353 | |
public String getReferencesToRefresh() { |
1354 | 0 | return referencesToRefresh; |
1355 | |
} |
1356 | |
|
1357 | |
public void setReferencesToRefresh(String referencesToRefresh) { |
1358 | 0 | this.referencesToRefresh = referencesToRefresh; |
1359 | 0 | } |
1360 | |
|
1361 | |
|
1362 | |
|
1363 | |
|
1364 | |
|
1365 | |
|
1366 | |
public String getMultipleValueLookupClassLabel() { |
1367 | 0 | return multipleValueLookupClassLabel; |
1368 | |
} |
1369 | |
|
1370 | |
|
1371 | |
|
1372 | |
|
1373 | |
|
1374 | |
|
1375 | |
public void setMultipleValueLookupClassLabel(String multipleValueLookupClassLabel) { |
1376 | 0 | this.multipleValueLookupClassLabel = multipleValueLookupClassLabel; |
1377 | 0 | } |
1378 | |
|
1379 | |
|
1380 | |
|
1381 | |
|
1382 | |
|
1383 | |
|
1384 | |
|
1385 | |
public String getMultipleValueLookedUpCollectionName() { |
1386 | 0 | return multipleValueLookedUpCollectionName; |
1387 | |
} |
1388 | |
|
1389 | |
|
1390 | |
|
1391 | |
|
1392 | |
|
1393 | |
|
1394 | |
|
1395 | |
|
1396 | |
public void setMultipleValueLookedUpCollectionName(String multipleValueLookedUpCollectionName) { |
1397 | 0 | this.multipleValueLookedUpCollectionName = multipleValueLookedUpCollectionName; |
1398 | 0 | } |
1399 | |
|
1400 | |
|
1401 | |
|
1402 | |
|
1403 | |
|
1404 | |
|
1405 | |
public String getMultipleValueLookupClassName() { |
1406 | 0 | return multipleValueLookupClassName; |
1407 | |
} |
1408 | |
|
1409 | |
|
1410 | |
|
1411 | |
|
1412 | |
|
1413 | |
|
1414 | |
public void setMultipleValueLookupClassName(String multipleValueLookupClassName) { |
1415 | 0 | this.multipleValueLookupClassName = multipleValueLookupClassName; |
1416 | 0 | } |
1417 | |
|
1418 | |
|
1419 | |
|
1420 | |
|
1421 | |
|
1422 | |
|
1423 | |
public String getCellAlign() { |
1424 | 0 | return cellAlign; |
1425 | |
} |
1426 | |
|
1427 | |
|
1428 | |
|
1429 | |
|
1430 | |
|
1431 | |
|
1432 | |
public void setCellAlign(String cellAlign) { |
1433 | 0 | this.cellAlign = cellAlign; |
1434 | 0 | } |
1435 | |
|
1436 | |
public String getInquiryParameters() { |
1437 | 0 | return this.inquiryParameters; |
1438 | |
} |
1439 | |
|
1440 | |
public void setInquiryParameters(String inquiryParameters) { |
1441 | 0 | this.inquiryParameters = inquiryParameters; |
1442 | 0 | } |
1443 | |
|
1444 | |
|
1445 | |
|
1446 | |
|
1447 | |
|
1448 | |
|
1449 | |
|
1450 | |
|
1451 | |
|
1452 | |
public boolean isFieldLevelHelpEnabled() { |
1453 | 0 | return this.fieldLevelHelpEnabled; |
1454 | |
} |
1455 | |
|
1456 | |
public void setFieldLevelHelpEnabled(boolean fieldLevelHelpEnabled) { |
1457 | 0 | this.fieldLevelHelpEnabled = fieldLevelHelpEnabled; |
1458 | 0 | } |
1459 | |
|
1460 | |
|
1461 | |
|
1462 | |
|
1463 | |
|
1464 | |
|
1465 | |
|
1466 | |
|
1467 | |
|
1468 | |
public boolean isFieldLevelHelpDisabled() { |
1469 | 0 | return this.fieldLevelHelpDisabled; |
1470 | |
} |
1471 | |
|
1472 | |
public void setFieldLevelHelpDisabled(boolean fieldLevelHelpDisabled) { |
1473 | 0 | this.fieldLevelHelpDisabled = fieldLevelHelpDisabled; |
1474 | 0 | } |
1475 | |
|
1476 | |
public boolean isFieldDirectInquiryEnabled() { |
1477 | 0 | return this.fieldDirectInquiryEnabled; |
1478 | |
} |
1479 | |
|
1480 | |
public void setFieldDirectInquiryEnabled(boolean fieldDirectInquiryEnabled) { |
1481 | 0 | this.fieldDirectInquiryEnabled = fieldDirectInquiryEnabled; |
1482 | 0 | } |
1483 | |
|
1484 | |
|
1485 | |
|
1486 | |
|
1487 | |
public List getFieldInactiveValidValues() { |
1488 | 0 | return this.fieldInactiveValidValues; |
1489 | |
} |
1490 | |
|
1491 | |
|
1492 | |
|
1493 | |
|
1494 | |
public void setFieldInactiveValidValues(List fieldInactiveValidValues) { |
1495 | 0 | this.fieldInactiveValidValues = fieldInactiveValidValues; |
1496 | 0 | } |
1497 | |
|
1498 | |
public boolean isTriggerOnChange() { |
1499 | 0 | return this.triggerOnChange; |
1500 | |
} |
1501 | |
|
1502 | |
public void setTriggerOnChange(boolean triggerOnChange) { |
1503 | 0 | this.triggerOnChange = triggerOnChange; |
1504 | 0 | } |
1505 | |
|
1506 | |
public boolean getHasLookupable() { |
1507 | 0 | if (quickFinderClassNameImpl == null) { |
1508 | 0 | return false; |
1509 | |
} else { |
1510 | 0 | return true; |
1511 | |
} |
1512 | |
} |
1513 | |
|
1514 | |
@Override |
1515 | |
public String getAlternateDisplayPropertyName() { |
1516 | 0 | return this.alternateDisplayPropertyName; |
1517 | |
} |
1518 | |
|
1519 | |
@Override |
1520 | |
public void setAlternateDisplayPropertyName(String alternateDisplayPropertyName) { |
1521 | 0 | this.alternateDisplayPropertyName = alternateDisplayPropertyName; |
1522 | 0 | } |
1523 | |
|
1524 | |
public String getAlternateDisplayPropertyValue() { |
1525 | 0 | return this.alternateDisplayPropertyValue; |
1526 | |
} |
1527 | |
|
1528 | |
public void setAlternateDisplayPropertyValue(Object alternateDisplayPropertyValue) { |
1529 | 0 | String formattedValue = ObjectUtils.formatPropertyValue(alternateDisplayPropertyValue); |
1530 | |
|
1531 | 0 | this.alternateDisplayPropertyValue = formattedValue; |
1532 | 0 | } |
1533 | |
|
1534 | |
@Override |
1535 | |
public String getAdditionalDisplayPropertyName() { |
1536 | 0 | return this.additionalDisplayPropertyName; |
1537 | |
} |
1538 | |
|
1539 | |
@Override |
1540 | |
public void setAdditionalDisplayPropertyName(String additionalDisplayPropertyName) { |
1541 | 0 | this.additionalDisplayPropertyName = additionalDisplayPropertyName; |
1542 | 0 | } |
1543 | |
|
1544 | |
public String getAdditionalDisplayPropertyValue() { |
1545 | 0 | return this.additionalDisplayPropertyValue; |
1546 | |
} |
1547 | |
|
1548 | |
public void setAdditionalDisplayPropertyValue(Object additionalDisplayPropertyValue) { |
1549 | 0 | String formattedValue = ObjectUtils.formatPropertyValue(additionalDisplayPropertyValue); |
1550 | |
|
1551 | 0 | this.additionalDisplayPropertyValue = formattedValue; |
1552 | 0 | } |
1553 | |
|
1554 | |
|
1555 | |
public boolean isIndexedForSearch() { |
1556 | 0 | return this.isIndexedForSearch; |
1557 | |
} |
1558 | |
|
1559 | |
public void setIndexedForSearch(boolean indexedForSearch) { |
1560 | 0 | this.isIndexedForSearch = indexedForSearch; |
1561 | 0 | } |
1562 | |
|
1563 | |
public String getMainFieldLabel() { |
1564 | 0 | return this.mainFieldLabel; |
1565 | |
} |
1566 | |
|
1567 | |
public Boolean getRangeFieldInclusive() { |
1568 | 0 | return this.rangeFieldInclusive; |
1569 | |
} |
1570 | |
|
1571 | |
public boolean isMemberOfRange() { |
1572 | 0 | return this.memberOfRange; |
1573 | |
} |
1574 | |
|
1575 | |
public void setMainFieldLabel(String mainFieldLabel) { |
1576 | 0 | this.mainFieldLabel = mainFieldLabel; |
1577 | 0 | } |
1578 | |
|
1579 | |
public void setRangeFieldInclusive(Boolean rangeFieldInclusive) { |
1580 | 0 | this.rangeFieldInclusive = rangeFieldInclusive; |
1581 | 0 | } |
1582 | |
|
1583 | |
public void setMemberOfRange(boolean memberOfRange) { |
1584 | 0 | this.memberOfRange = memberOfRange; |
1585 | 0 | } |
1586 | |
|
1587 | |
public boolean isInclusive() { |
1588 | 0 | return (rangeFieldInclusive == null) ? true : rangeFieldInclusive; |
1589 | |
} |
1590 | |
|
1591 | |
public String getFieldDataType() { |
1592 | 0 | return this.fieldDataType; |
1593 | |
} |
1594 | |
|
1595 | |
public void setFieldDataType(String fieldDataType) { |
1596 | 0 | this.fieldDataType = fieldDataType; |
1597 | 0 | } |
1598 | |
|
1599 | |
public boolean isColumnVisible() { |
1600 | 0 | return this.isColumnVisible; |
1601 | |
} |
1602 | |
|
1603 | |
public void setColumnVisible(boolean isColumnVisible) { |
1604 | 0 | this.isColumnVisible = isColumnVisible; |
1605 | 0 | } |
1606 | |
|
1607 | |
public String[] getPropertyValues() { |
1608 | 0 | return this.propertyValues; |
1609 | |
} |
1610 | |
|
1611 | |
public void setPropertyValues(String[] propertyValues) { |
1612 | 0 | this.propertyValues = propertyValues; |
1613 | 0 | } |
1614 | |
|
1615 | |
|
1616 | |
|
1617 | |
|
1618 | |
public boolean isSkipBlankValidValue() { |
1619 | 0 | return this.skipBlankValidValue; |
1620 | |
} |
1621 | |
|
1622 | |
|
1623 | |
|
1624 | |
|
1625 | |
public void setSkipBlankValidValue(boolean skipBlankValidValue) { |
1626 | 0 | this.skipBlankValidValue = skipBlankValidValue; |
1627 | 0 | } |
1628 | |
|
1629 | |
|
1630 | |
|
1631 | |
|
1632 | |
public boolean isAllowInlineRange() { |
1633 | 0 | return this.allowInlineRange; |
1634 | |
} |
1635 | |
|
1636 | |
|
1637 | |
|
1638 | |
|
1639 | |
public void setAllowInlineRange(boolean allowInlineRange) { |
1640 | 0 | this.allowInlineRange = allowInlineRange; |
1641 | 0 | } |
1642 | |
|
1643 | |
public String getUniversalIdValue() { |
1644 | 0 | return this.universalIdValue; |
1645 | |
} |
1646 | |
|
1647 | |
public void setUniversalIdValue(String universalIdValue) { |
1648 | 0 | this.universalIdValue = universalIdValue; |
1649 | 0 | } |
1650 | |
|
1651 | |
public String getPersonNameValue() { |
1652 | 0 | return this.personNameValue; |
1653 | |
} |
1654 | |
|
1655 | |
public void setPersonNameValue(String personNameValue) { |
1656 | 0 | this.personNameValue = personNameValue; |
1657 | 0 | } |
1658 | |
|
1659 | |
public String getBaseLookupUrl() { |
1660 | 0 | return this.baseLookupUrl; |
1661 | |
} |
1662 | |
|
1663 | |
public void setBaseLookupUrl(String baseLookupURL) { |
1664 | 0 | this.baseLookupUrl = baseLookupURL; |
1665 | 0 | } |
1666 | |
|
1667 | |
public String getFieldLevelHelpUrl() { |
1668 | 0 | return fieldLevelHelpUrl; |
1669 | |
} |
1670 | |
|
1671 | |
public void setFieldLevelHelpUrl(String fieldLevelHelpUrl) { |
1672 | 0 | this.fieldLevelHelpUrl = fieldLevelHelpUrl; |
1673 | 0 | } |
1674 | |
|
1675 | |
|
1676 | |
|
1677 | |
|
1678 | |
public List<String> getWebUILeaveFieldFunctionParameters() { |
1679 | 0 | return this.webUILeaveFieldFunctionParameters; |
1680 | |
} |
1681 | |
|
1682 | |
|
1683 | |
|
1684 | |
|
1685 | |
|
1686 | |
public void setWebUILeaveFieldFunctionParameters( |
1687 | |
List<String> webUILeaveFieldFunctionParameters) { |
1688 | 0 | this.webUILeaveFieldFunctionParameters = webUILeaveFieldFunctionParameters; |
1689 | 0 | } |
1690 | |
|
1691 | |
public String getWebUILeaveFieldFunctionParametersString() { |
1692 | 0 | return KRADUtils.joinWithQuotes(getWebUILeaveFieldFunctionParameters()); |
1693 | |
} |
1694 | |
|
1695 | |
|
1696 | |
|
1697 | |
} |