1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.krad.uif.element;
17
18 import org.kuali.rice.krad.datadictionary.parse.BeanTag;
19 import org.kuali.rice.krad.uif.component.Component;
20 import org.kuali.rice.krad.uif.component.ComponentBase;
21 import org.kuali.rice.krad.uif.lifecycle.ViewLifecycle;
22
23
24
25
26
27
28 @BeanTag(name = "contentElement", parent = "Uif-ContentElementBase")
29 public abstract class ContentElementBase extends ComponentBase implements ContentElement {
30 private static final long serialVersionUID = 5816584444025193540L;
31
32 public ContentElementBase() {
33 super();
34 }
35
36 @Override
37 public String getComponentTypeName() {
38 return "element";
39 }
40
41
42
43
44
45
46 @Override
47 public void afterEvaluateExpression() {
48 super.afterEvaluateExpression();
49
50 if (getReadOnly() == null) {
51 Component parent = ViewLifecycle.getPhase().getParent();
52 setReadOnly(parent == null ? null : parent.getReadOnly());
53 }
54 }
55
56
57 }