1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.krad.uif.lifecycle.finalize;
17
18 import org.kuali.rice.krad.uif.lifecycle.FinalizeComponentPhase;
19 import org.kuali.rice.krad.uif.lifecycle.ViewLifecycle;
20 import org.kuali.rice.krad.uif.lifecycle.ViewLifecyclePhase;
21 import org.kuali.rice.krad.uif.lifecycle.ViewLifecycleTaskBase;
22 import org.kuali.rice.krad.uif.util.LifecycleElement;
23
24
25
26
27
28
29 public class HelperCustomFinalizeTask extends ViewLifecycleTaskBase<LifecycleElement> {
30
31
32
33
34
35
36 public HelperCustomFinalizeTask(ViewLifecyclePhase phase) {
37 super(phase, LifecycleElement.class);
38 }
39
40
41
42
43 @Override
44 public FinalizeComponentPhase getElementState() {
45 return (FinalizeComponentPhase) super.getElementState();
46 }
47
48
49
50
51 @Override
52 protected void performLifecycleTask() {
53
54 ViewLifecycle.getHelper().performCustomFinalize(getElementState().getElement(),
55 ViewLifecycle.getModel(),
56 getElementState().getParent());
57 }
58
59 }