1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.krad.uif.container;
17
18 import org.apache.commons.lang.StringUtils;
19 import org.kuali.rice.core.api.config.property.ConfigurationService;
20 import org.kuali.rice.krad.service.KRADServiceLocator;
21 import org.kuali.rice.krad.uif.component.Component;
22 import org.kuali.rice.krad.uif.view.View;
23 import org.kuali.rice.krad.uif.widget.Growls;
24 import org.kuali.rice.krad.util.ErrorMessage;
25 import org.kuali.rice.krad.util.GlobalVariables;
26 import org.kuali.rice.krad.util.MessageMap;
27 import org.springframework.util.AutoPopulatingList;
28
29 import java.text.MessageFormat;
30 import java.util.List;
31
32
33
34
35 public class PageGroup extends Group {
36 private static final long serialVersionUID = 7571981300587270274L;
37
38 private boolean autoFocus;
39
40
41
42
43
44
45
46
47 @Override
48 public void performFinalize(View view, Object model, Component parent) {
49 super.performFinalize(view, model, parent);
50
51 String prefixScript = "";
52 if (this.getOnDocumentReadyScript() != null) {
53 prefixScript = this.getOnDocumentReadyScript();
54 }
55
56 this.setOnDocumentReadyScript(prefixScript + "\nsetupValidator();");
57 }
58
59
60
61
62
63
64
65
66
67 public boolean isAutoFocus() {
68 return this.autoFocus;
69 }
70
71
72
73
74 public void setAutoFocus(boolean autoFocus) {
75 this.autoFocus = autoFocus;
76 }
77
78 }