1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.krad.uif.component;
17
18 import org.apache.commons.lang.StringUtils;
19 import org.kuali.rice.krad.uif.CssConstants;
20 import org.kuali.rice.krad.uif.UifConstants;
21 import org.kuali.rice.krad.uif.UifConstants.ViewStatus;
22 import org.kuali.rice.krad.uif.container.CollectionGroup;
23 import org.kuali.rice.krad.uif.control.ControlBase;
24 import org.kuali.rice.krad.uif.modifier.ComponentModifier;
25 import org.kuali.rice.krad.uif.util.ComponentUtils;
26 import org.kuali.rice.krad.uif.util.ExpressionUtils;
27 import org.kuali.rice.krad.uif.view.View;
28
29 import java.util.ArrayList;
30 import java.util.HashMap;
31 import java.util.List;
32 import java.util.ListIterator;
33 import java.util.Map;
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48 public abstract class ComponentBase extends ConfigurableBase implements Component {
49 private static final long serialVersionUID = -4449335748129894350L;
50
51 private String id;
52 private String factoryId;
53 private String template;
54 private String title;
55
56 private boolean render;
57 private boolean refresh;
58
59 private String progressiveRender;
60 private boolean progressiveRenderViaAJAX;
61 private boolean progressiveRenderAndRefresh;
62 private List<String> progressiveDisclosureControlNames;
63 private String progressiveDisclosureConditionJs;
64
65 private String conditionalRefresh;
66 private String conditionalRefreshConditionJs;
67 private List<String> conditionalRefreshControlNames;
68
69 private String refreshWhenChanged;
70 private List<String> refreshWhenChangedControlNames;
71 private boolean refreshedByAction;
72
73 private boolean resetDataOnRefresh;
74 private String refreshDiscloseMethodToCall;
75
76 private boolean hidden;
77 private boolean readOnly;
78 private Boolean required;
79
80 private String align;
81 private String valign;
82 private String width;
83
84 private int colSpan;
85 private int rowSpan;
86
87 private String style;
88 private List<String> styleClasses;
89
90 private int order;
91
92 private boolean skipInTabOrder;
93
94 private String finalizeMethodToCall;
95 private List<Object> finalizeMethodAdditionalArguments;
96 private MethodInvokerConfig finalizeMethodInvoker;
97 private boolean selfRendered;
98 private String renderOutput;
99
100 private String onLoadScript;
101 private String onUnloadScript;
102 private String onCloseScript;
103 private String onBlurScript;
104 private String onChangeScript;
105 private String onClickScript;
106 private String onDblClickScript;
107 private String onFocusScript;
108 private String onSubmitScript;
109 private String onKeyPressScript;
110 private String onKeyUpScript;
111 private String onKeyDownScript;
112 private String onMouseOverScript;
113 private String onMouseOutScript;
114 private String onMouseUpScript;
115 private String onMouseDownScript;
116 private String onMouseMoveScript;
117 private String onDocumentReadyScript;
118
119 private List<ComponentModifier> componentModifiers;
120
121 private Map<String, String> componentOptions;
122 private String componentOptionsJSString;
123
124 @ReferenceCopy(newCollectionInstance = true)
125 private transient Map<String, Object> context;
126
127 private List<PropertyReplacer> propertyReplacers;
128
129 public ComponentBase() {
130 super();
131
132 order = 0;
133 colSpan = 1;
134 rowSpan = 1;
135
136 render = true;
137 selfRendered = false;
138 progressiveRenderViaAJAX = false;
139 progressiveRenderAndRefresh = false;
140 refreshedByAction = false;
141 resetDataOnRefresh = false;
142
143 finalizeMethodAdditionalArguments = new ArrayList<Object>();
144 styleClasses = new ArrayList<String>();
145 componentModifiers = new ArrayList<ComponentModifier>();
146 componentOptions = new HashMap<String, String>();
147 context = new HashMap<String, Object>();
148 propertyReplacers = new ArrayList<PropertyReplacer>();
149 }
150
151
152
153
154
155
156
157
158
159
160 public void performInitialization(View view, Object model) {
161 if (StringUtils.isNotEmpty(progressiveRender)) {
162
163
164 String conditionalRender = getPropertyExpression("render");
165 if (StringUtils.isNotEmpty(conditionalRender)) {
166
167 conditionalRender = "(" + conditionalRender + ") and (" + progressiveRender + ")";
168 } else {
169 conditionalRender = progressiveRender;
170 }
171 getPropertyExpressions().put("render", conditionalRender);
172
173
174
175 progressiveDisclosureControlNames = new ArrayList<String>();
176 progressiveDisclosureConditionJs = ExpressionUtils.parseExpression(progressiveRender,
177 progressiveDisclosureControlNames);
178 }
179
180 if (StringUtils.isNotEmpty(conditionalRefresh)) {
181 conditionalRefreshControlNames = new ArrayList<String>();
182 conditionalRefreshConditionJs = ExpressionUtils.parseExpression(conditionalRefresh,
183 conditionalRefreshControlNames);
184 }
185
186 if (StringUtils.isNotEmpty(refreshWhenChanged)) {
187 refreshWhenChangedControlNames = new ArrayList<String>();
188 String[] names = StringUtils.split(refreshWhenChanged, ",");
189 for (String name : names) {
190 refreshWhenChangedControlNames.add(name.trim());
191 }
192 }
193 }
194
195
196
197
198
199
200
201
202 public void performApplyModel(View view, Object model, Component parent) {
203
204 }
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220 public void performFinalize(View view, Object model, Component parent) {
221 if (!ViewStatus.FINAL.equals(view.getViewStatus())) {
222
223 if (StringUtils.isNotBlank(getAlign()) && !StringUtils.contains(getStyle(), CssConstants.TEXT_ALIGN)) {
224 appendToStyle(CssConstants.TEXT_ALIGN + getAlign() + ";");
225 }
226
227 if (StringUtils.isNotBlank(getValign()) && !StringUtils.contains(getStyle(), CssConstants.VERTICAL_ALIGN)) {
228 appendToStyle(CssConstants.VERTICAL_ALIGN + getValign() + ";");
229 }
230
231 if (StringUtils.isNotBlank(getWidth()) && !StringUtils.contains(getStyle(), CssConstants.WIDTH)) {
232 appendToStyle(CssConstants.WIDTH + getWidth() + ";");
233 }
234 }
235
236
237
238 for (Component component : getComponentsForLifecycle()) {
239 if (component != null && component instanceof ComponentBase && skipInTabOrder) {
240 ((ComponentBase) component).setSkipInTabOrder(skipInTabOrder);
241 if (component instanceof ControlBase) {
242 ((ControlBase) component).setTabIndex(-1);
243 }
244 }
245 }
246
247
248
249 CollectionGroup collectionGroup = (CollectionGroup) (this.getContext().get(
250 UifConstants.ContextVariableNames.COLLECTION_GROUP));
251 String linePath = "";
252 if (collectionGroup != null) {
253 linePath = ComponentUtils.getLinePathValue(this);
254
255
256 if (StringUtils.isNotEmpty(progressiveRender) && StringUtils.isNotEmpty(linePath)) {
257 progressiveDisclosureConditionJs = ComponentUtils.replaceLineAttr(progressiveDisclosureConditionJs,
258 linePath);
259 ListIterator<String> listIterator = progressiveDisclosureControlNames.listIterator();
260 while (listIterator.hasNext()) {
261 String name = listIterator.next();
262 name = ComponentUtils.replaceLineAttr(name, linePath);
263 listIterator.set(name);
264 }
265 }
266
267
268 String conditionalRefresh = getPropertyExpression("refresh");
269 if (StringUtils.isNotEmpty(conditionalRefresh) && StringUtils.isNotEmpty(linePath)) {
270 conditionalRefreshConditionJs = ComponentUtils.replaceLineAttr(conditionalRefreshConditionJs, linePath);
271 ListIterator<String> listIterator = conditionalRefreshControlNames.listIterator();
272 while (listIterator.hasNext()) {
273 String name = listIterator.next();
274 name = ComponentUtils.replaceLineAttr(name, linePath);
275 listIterator.set(name);
276 }
277 }
278
279 if (StringUtils.isNotEmpty(refreshWhenChanged)) {
280 ListIterator<String> listIterator = refreshWhenChangedControlNames.listIterator();
281 while (listIterator.hasNext()) {
282 String name = listIterator.next();
283 name = ComponentUtils.replaceLineAttr(name, linePath);
284 listIterator.set(name);
285 }
286 }
287 }
288 }
289
290
291
292
293 public List<Component> getComponentsForLifecycle() {
294 List<Component> components = new ArrayList<Component>();
295
296 return components;
297 }
298
299
300
301
302 public List<Component> getComponentPrototypes() {
303 List<Component> components = new ArrayList<Component>();
304
305 for (ComponentModifier modifier : componentModifiers) {
306 components.addAll(modifier.getComponentPrototypes());
307 }
308
309 components.addAll(getPropertyReplacerComponents());
310
311 return components;
312 }
313
314
315
316
317
318
319 public List<Component> getPropertyReplacerComponents() {
320 List<Component> components = new ArrayList<Component>();
321 for (Object replacer : propertyReplacers) {
322 components.addAll(((PropertyReplacer) replacer).getNestedComponents());
323 }
324
325 return components;
326 }
327
328
329
330
331 public String getId() {
332 return this.id;
333 }
334
335
336
337
338 public void setId(String id) {
339 this.id = id;
340 }
341
342
343
344
345 public String getFactoryId() {
346 return this.factoryId;
347 }
348
349
350
351
352 public void setFactoryId(String factoryId) {
353 this.factoryId = factoryId;
354 }
355
356
357
358
359 public String getTemplate() {
360 return this.template;
361 }
362
363
364
365
366 public void setTemplate(String template) {
367 this.template = template;
368 }
369
370
371
372
373 public String getTitle() {
374 return this.title;
375 }
376
377
378
379
380 public void setTitle(String title) {
381 this.title = title;
382 }
383
384
385
386
387 public boolean isHidden() {
388 return this.hidden;
389 }
390
391
392
393
394 public void setHidden(boolean hidden) {
395 this.hidden = hidden;
396 }
397
398
399
400
401 public boolean isReadOnly() {
402 return this.readOnly;
403 }
404
405
406
407
408 public void setReadOnly(boolean readOnly) {
409 this.readOnly = readOnly;
410 }
411
412
413
414
415 public Boolean getRequired() {
416 return this.required;
417 }
418
419
420
421
422 public void setRequired(Boolean required) {
423 this.required = required;
424 }
425
426
427
428
429 public boolean isRender() {
430 return this.render;
431 }
432
433
434
435
436 public void setRender(boolean render) {
437 this.render = render;
438 }
439
440
441
442
443 public int getColSpan() {
444 return this.colSpan;
445 }
446
447
448
449
450 public void setColSpan(int colSpan) {
451 this.colSpan = colSpan;
452 }
453
454
455
456
457 public int getRowSpan() {
458 return this.rowSpan;
459 }
460
461
462
463
464 public void setRowSpan(int rowSpan) {
465 this.rowSpan = rowSpan;
466 }
467
468
469
470
471
472
473
474
475
476
477
478
479
480 public String getAlign() {
481 return this.align;
482 }
483
484
485
486
487
488
489 public void setAlign(String align) {
490 this.align = align;
491 }
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506 public String getValign() {
507 return this.valign;
508 }
509
510
511
512
513
514
515 public void setValign(String valign) {
516 this.valign = valign;
517 }
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534 public String getWidth() {
535 return this.width;
536 }
537
538
539
540
541
542
543 public void setWidth(String width) {
544 this.width = width;
545 }
546
547
548
549
550 public String getStyle() {
551 return this.style;
552 }
553
554
555
556
557 public void setStyle(String style) {
558 this.style = style;
559 }
560
561
562
563
564 public List<String> getStyleClasses() {
565 return this.styleClasses;
566 }
567
568
569
570
571 public void setStyleClasses(List<String> styleClasses) {
572 this.styleClasses = styleClasses;
573 }
574
575
576
577
578
579
580
581 public String getStyleClassesAsString() {
582 if (styleClasses != null) {
583 return StringUtils.join(styleClasses, " ");
584 }
585
586 return "";
587 }
588
589
590
591
592 public void addStyleClass(String styleClass) {
593 if (!styleClasses.contains(styleClass)) {
594 styleClasses.add(styleClass);
595 }
596 }
597
598
599
600
601 public void appendToStyle(String styleRules) {
602 if (style == null) {
603 style = "";
604 }
605 style = style + styleRules;
606 }
607
608
609
610
611 public String getFinalizeMethodToCall() {
612 return this.finalizeMethodToCall;
613 }
614
615
616
617
618
619
620 public void setFinalizeMethodToCall(String finalizeMethodToCall) {
621 this.finalizeMethodToCall = finalizeMethodToCall;
622 }
623
624
625
626
627 public List<Object> getFinalizeMethodAdditionalArguments() {
628 return finalizeMethodAdditionalArguments;
629 }
630
631
632
633
634
635
636 public void setFinalizeMethodAdditionalArguments(List<Object> finalizeMethodAdditionalArguments) {
637 this.finalizeMethodAdditionalArguments = finalizeMethodAdditionalArguments;
638 }
639
640
641
642
643 public MethodInvokerConfig getFinalizeMethodInvoker() {
644 return this.finalizeMethodInvoker;
645 }
646
647
648
649
650
651
652 public void setFinalizeMethodInvoker(MethodInvokerConfig finalizeMethodInvoker) {
653 this.finalizeMethodInvoker = finalizeMethodInvoker;
654 }
655
656
657
658
659 public boolean isSelfRendered() {
660 return this.selfRendered;
661 }
662
663
664
665
666 public void setSelfRendered(boolean selfRendered) {
667 this.selfRendered = selfRendered;
668 }
669
670
671
672
673 public String getRenderOutput() {
674 return this.renderOutput;
675 }
676
677
678
679
680 public void setRenderOutput(String renderOutput) {
681 this.renderOutput = renderOutput;
682 }
683
684
685
686
687 public List<ComponentModifier> getComponentModifiers() {
688 return this.componentModifiers;
689 }
690
691
692
693
694 public void setComponentModifiers(List<ComponentModifier> componentModifiers) {
695 this.componentModifiers = componentModifiers;
696 }
697
698
699
700
701 public Map<String, Object> getContext() {
702 return this.context;
703 }
704
705
706
707
708 public void setContext(Map<String, Object> context) {
709 this.context = context;
710 }
711
712
713
714
715
716 public void pushObjectToContext(String objectName, Object object) {
717 if (this.context == null) {
718 this.context = new HashMap<String, Object>();
719 }
720 pushToPropertyReplacerContext(objectName, object);
721 this.context.put(objectName, object);
722 }
723
724
725
726
727
728 protected void pushToPropertyReplacerContext(String objectName, Object object) {
729 for (Component replacerComponent : getPropertyReplacerComponents()) {
730 replacerComponent.pushObjectToContext(objectName, object);
731 }
732 }
733
734
735
736
737 public void pushAllToContext(Map<String, Object> objects) {
738 if (objects != null) {
739 for (Map.Entry<String, Object> objectEntry : objects.entrySet()) {
740 pushObjectToContext(objectEntry.getKey(), objectEntry.getValue());
741 }
742 }
743 }
744
745
746
747
748 public List<PropertyReplacer> getPropertyReplacers() {
749 return this.propertyReplacers;
750 }
751
752
753
754
755 public void setPropertyReplacers(List<PropertyReplacer> propertyReplacers) {
756 this.propertyReplacers = propertyReplacers;
757 }
758
759
760
761
762 public int getOrder() {
763 return this.order;
764 }
765
766
767
768
769
770
771 public void setOrder(int order) {
772 this.order = order;
773 }
774
775
776
777
778 public boolean getSupportsOnLoad() {
779 return false;
780 }
781
782
783
784
785 public String getOnLoadScript() {
786 return onLoadScript;
787 }
788
789
790
791
792
793
794 public void setOnLoadScript(String onLoadScript) {
795 this.onLoadScript = onLoadScript;
796 }
797
798
799
800
801 public boolean getSupportsOnDocumentReady() {
802 return true;
803 }
804
805
806
807
808 public String getOnDocumentReadyScript() {
809 return onDocumentReadyScript;
810 }
811
812
813
814
815
816
817 public void setOnDocumentReadyScript(String onDocumentReadyScript) {
818 this.onDocumentReadyScript = onDocumentReadyScript;
819 }
820
821
822
823
824 public boolean getSupportsOnUnload() {
825 return false;
826 }
827
828
829
830
831 public String getOnUnloadScript() {
832 return onUnloadScript;
833 }
834
835
836
837
838
839
840 public void setOnUnloadScript(String onUnloadScript) {
841 this.onUnloadScript = onUnloadScript;
842 }
843
844
845
846
847 public boolean getSupportsOnClose() {
848 return false;
849 }
850
851
852
853
854 public String getOnCloseScript() {
855 return onCloseScript;
856 }
857
858
859
860
861
862
863 public void setOnCloseScript(String onCloseScript) {
864 this.onCloseScript = onCloseScript;
865 }
866
867
868
869
870 public boolean getSupportsOnBlur() {
871 return false;
872 }
873
874
875
876
877 public String getOnBlurScript() {
878 return onBlurScript;
879 }
880
881
882
883
884
885
886 public void setOnBlurScript(String onBlurScript) {
887 this.onBlurScript = onBlurScript;
888 }
889
890
891
892
893 public boolean getSupportsOnChange() {
894 return false;
895 }
896
897
898
899
900 public String getOnChangeScript() {
901 return onChangeScript;
902 }
903
904
905
906
907
908
909 public void setOnChangeScript(String onChangeScript) {
910 this.onChangeScript = onChangeScript;
911 }
912
913
914
915
916 public boolean getSupportsOnClick() {
917 return false;
918 }
919
920
921
922
923 public String getOnClickScript() {
924 return onClickScript;
925 }
926
927
928
929
930
931
932 public void setOnClickScript(String onClickScript) {
933 this.onClickScript = onClickScript;
934 }
935
936
937
938
939 public boolean getSupportsOnDblClick() {
940 return false;
941 }
942
943
944
945
946 public String getOnDblClickScript() {
947 return onDblClickScript;
948 }
949
950
951
952
953
954
955 public void setOnDblClickScript(String onDblClickScript) {
956 this.onDblClickScript = onDblClickScript;
957 }
958
959
960
961
962 public boolean getSupportsOnFocus() {
963 return false;
964 }
965
966
967
968
969 public String getOnFocusScript() {
970 return onFocusScript;
971 }
972
973
974
975
976
977
978 public void setOnFocusScript(String onFocusScript) {
979 this.onFocusScript = onFocusScript;
980 }
981
982
983
984
985 public boolean getSupportsOnSubmit() {
986 return false;
987 }
988
989
990
991
992 public String getOnSubmitScript() {
993 return onSubmitScript;
994 }
995
996
997
998
999
1000
1001 public void setOnSubmitScript(String onSubmitScript) {
1002 this.onSubmitScript = onSubmitScript;
1003 }
1004
1005
1006
1007
1008 public boolean getSupportsOnKeyPress() {
1009 return false;
1010 }
1011
1012
1013
1014
1015 public String getOnKeyPressScript() {
1016 return onKeyPressScript;
1017 }
1018
1019
1020
1021
1022
1023
1024 public void setOnKeyPressScript(String onKeyPressScript) {
1025 this.onKeyPressScript = onKeyPressScript;
1026 }
1027
1028
1029
1030
1031 public boolean getSupportsOnKeyUp() {
1032 return false;
1033 }
1034
1035
1036
1037
1038 public String getOnKeyUpScript() {
1039 return onKeyUpScript;
1040 }
1041
1042
1043
1044
1045
1046
1047 public void setOnKeyUpScript(String onKeyUpScript) {
1048 this.onKeyUpScript = onKeyUpScript;
1049 }
1050
1051
1052
1053
1054 public boolean getSupportsOnKeyDown() {
1055 return false;
1056 }
1057
1058
1059
1060
1061 public String getOnKeyDownScript() {
1062 return onKeyDownScript;
1063 }
1064
1065
1066
1067
1068
1069
1070 public void setOnKeyDownScript(String onKeyDownScript) {
1071 this.onKeyDownScript = onKeyDownScript;
1072 }
1073
1074
1075
1076
1077 public boolean getSupportsOnMouseOver() {
1078 return false;
1079 }
1080
1081
1082
1083
1084 public String getOnMouseOverScript() {
1085 return onMouseOverScript;
1086 }
1087
1088
1089
1090
1091
1092
1093 public void setOnMouseOverScript(String onMouseOverScript) {
1094 this.onMouseOverScript = onMouseOverScript;
1095 }
1096
1097
1098
1099
1100 public boolean getSupportsOnMouseOut() {
1101 return false;
1102 }
1103
1104
1105
1106
1107 public String getOnMouseOutScript() {
1108 return onMouseOutScript;
1109 }
1110
1111
1112
1113
1114
1115
1116 public void setOnMouseOutScript(String onMouseOutScript) {
1117 this.onMouseOutScript = onMouseOutScript;
1118 }
1119
1120
1121
1122
1123 public boolean getSupportsOnMouseUp() {
1124 return false;
1125 }
1126
1127
1128
1129
1130 public String getOnMouseUpScript() {
1131 return onMouseUpScript;
1132 }
1133
1134
1135
1136
1137
1138
1139 public void setOnMouseUpScript(String onMouseUpScript) {
1140 this.onMouseUpScript = onMouseUpScript;
1141 }
1142
1143
1144
1145
1146 public boolean getSupportsOnMouseDown() {
1147 return false;
1148 }
1149
1150
1151
1152
1153 public String getOnMouseDownScript() {
1154 return onMouseDownScript;
1155 }
1156
1157
1158
1159
1160
1161
1162 public void setOnMouseDownScript(String onMouseDownScript) {
1163 this.onMouseDownScript = onMouseDownScript;
1164 }
1165
1166
1167
1168
1169 public boolean getSupportsOnMouseMove() {
1170 return false;
1171 }
1172
1173
1174
1175
1176 public String getOnMouseMoveScript() {
1177 return onMouseMoveScript;
1178 }
1179
1180
1181
1182
1183
1184
1185 public void setOnMouseMoveScript(String onMouseMoveScript) {
1186 this.onMouseMoveScript = onMouseMoveScript;
1187 }
1188
1189 public Map<String, String> getComponentOptions() {
1190 if (componentOptions == null) {
1191 componentOptions = new HashMap<String, String>();
1192 }
1193 return this.componentOptions;
1194 }
1195
1196 public void setComponentOptions(Map<String, String> componentOptions) {
1197 this.componentOptions = componentOptions;
1198 }
1199
1200
1201
1202
1203
1204
1205
1206
1207 @Override
1208 public String getComponentOptionsJSString() {
1209 if (componentOptionsJSString != null) {
1210 return componentOptionsJSString;
1211 }
1212
1213 if (componentOptions == null) {
1214 componentOptions = new HashMap<String, String>();
1215 }
1216 StringBuilder sb = new StringBuilder();
1217
1218 sb.append("{");
1219
1220 for (String optionKey : componentOptions.keySet()) {
1221 String optionValue = componentOptions.get(optionKey);
1222
1223 if (sb.length() > 1) {
1224 sb.append(",");
1225 }
1226
1227 sb.append(optionKey);
1228 sb.append(":");
1229
1230 boolean isNumber = false;
1231 if (StringUtils.isNotBlank(optionValue) && (StringUtils.isNumeric(optionValue.trim().substring(0, 1))
1232 || optionValue.trim().substring(0, 1).equals("-"))) {
1233 try {
1234 Double.parseDouble(optionValue.trim());
1235 isNumber = true;
1236 } catch (NumberFormatException e) {
1237 isNumber = false;
1238 }
1239 }
1240
1241
1242 if (StringUtils.startsWith(optionValue, "{") || StringUtils.startsWith(optionValue, "[")) {
1243 sb.append(optionValue);
1244 }
1245
1246
1247 else if (optionValue.equalsIgnoreCase("false") || optionValue.equalsIgnoreCase("true")) {
1248 sb.append(optionValue);
1249 }
1250
1251 else if (StringUtils.startsWith(optionValue, "function") && StringUtils.endsWith(optionValue, "}")) {
1252 sb.append(optionValue);
1253 }
1254
1255 else if (isNumber) {
1256 sb.append(optionValue);
1257 } else {
1258 sb.append("\"" + optionValue + "\"");
1259 }
1260 }
1261
1262 sb.append("}");
1263
1264 return sb.toString();
1265 }
1266
1267 @Override
1268 public void setComponentOptionsJSString(String componentOptionsJSString) {
1269 this.componentOptionsJSString = componentOptionsJSString;
1270 }
1271
1272 public String getEventCode() {
1273 String eventCode = "";
1274
1275 return eventCode;
1276 }
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298 public String getProgressiveRender() {
1299 return this.progressiveRender;
1300 }
1301
1302
1303
1304
1305 public void setProgressiveRender(String progressiveRender) {
1306 this.progressiveRender = progressiveRender;
1307 }
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326 public String getConditionalRefresh() {
1327 return this.conditionalRefresh;
1328 }
1329
1330
1331
1332
1333 public void setConditionalRefresh(String conditionalRefresh) {
1334 this.conditionalRefresh = conditionalRefresh;
1335 }
1336
1337
1338
1339
1340
1341
1342
1343 public List<String> getProgressiveDisclosureControlNames() {
1344 return this.progressiveDisclosureControlNames;
1345 }
1346
1347
1348
1349
1350
1351
1352
1353 public String getProgressiveDisclosureConditionJs() {
1354 return this.progressiveDisclosureConditionJs;
1355 }
1356
1357
1358
1359
1360
1361
1362
1363 public String getConditionalRefreshConditionJs() {
1364 return this.conditionalRefreshConditionJs;
1365 }
1366
1367
1368
1369
1370
1371
1372
1373 public List<String> getConditionalRefreshControlNames() {
1374 return this.conditionalRefreshControlNames;
1375 }
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387 public boolean isProgressiveRenderViaAJAX() {
1388 return this.progressiveRenderViaAJAX;
1389 }
1390
1391
1392
1393
1394 public void setProgressiveRenderViaAJAX(boolean progressiveRenderViaAJAX) {
1395 this.progressiveRenderViaAJAX = progressiveRenderViaAJAX;
1396 }
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408 public boolean isProgressiveRenderAndRefresh() {
1409 return this.progressiveRenderAndRefresh;
1410 }
1411
1412
1413
1414
1415 public void setProgressiveRenderAndRefresh(boolean progressiveRenderAndRefresh) {
1416 this.progressiveRenderAndRefresh = progressiveRenderAndRefresh;
1417 }
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429 public String getRefreshWhenChanged() {
1430 return this.refreshWhenChanged;
1431 }
1432
1433
1434
1435
1436 public void setRefreshWhenChanged(String refreshWhenChanged) {
1437 this.refreshWhenChanged = refreshWhenChanged;
1438 }
1439
1440
1441
1442
1443
1444
1445
1446 public List<String> getRefreshWhenChangedControlNames() {
1447 return this.refreshWhenChangedControlNames;
1448 }
1449
1450
1451
1452
1453 public boolean isRefreshedByAction() {
1454 return refreshedByAction;
1455 }
1456
1457
1458
1459
1460 public void setRefreshedByAction(boolean refreshedByAction) {
1461 this.refreshedByAction = refreshedByAction;
1462 }
1463
1464
1465
1466
1467 public boolean isResetDataOnRefresh() {
1468 return resetDataOnRefresh;
1469 }
1470
1471
1472
1473
1474 public void setResetDataOnRefresh(boolean resetDataOnRefresh) {
1475 this.resetDataOnRefresh = resetDataOnRefresh;
1476 }
1477
1478
1479
1480
1481 public boolean isRefresh() {
1482 return this.refresh;
1483 }
1484
1485
1486
1487
1488 public void setRefresh(boolean refresh) {
1489 this.refresh = refresh;
1490 }
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508 public String getRefreshDiscloseMethodToCall() {
1509 return refreshDiscloseMethodToCall;
1510 }
1511
1512
1513
1514
1515
1516
1517 public void setRefreshDiscloseMethodToCall(String refreshDiscloseMethodToCall) {
1518 this.refreshDiscloseMethodToCall = refreshDiscloseMethodToCall;
1519 }
1520
1521
1522
1523
1524 public void setSkipInTabOrder(boolean skipInTabOrder) {
1525 this.skipInTabOrder = skipInTabOrder;
1526 }
1527
1528
1529
1530
1531
1532
1533
1534 public boolean isSkipInTabOrder() {
1535 return skipInTabOrder;
1536 }
1537
1538 }