Class FinalizeComponentPhase
java.lang.Object
org.kuali.rice.krad.uif.lifecycle.ViewLifecyclePhaseBase
org.kuali.rice.krad.uif.lifecycle.FinalizeComponentPhase
- All Implemented Interfaces:
Runnable,LifecycleElementState,ViewLifecyclePhase
Lifecycle phase processing task for finalizing a component.
The finalize phase is the last phase before the view is rendered. Here final preparations can be made based on the updated view state.
The finalize phase runs after the apply model phase and can be called multiple times for the view's lifecylce (however typically only once per request)
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the expected view status after phase execution.Gets the event to notify on completion.Gets the expected view status prior to phase execution.Gets the view lifecycle phase constant that corresponds to this phase processing task.protected voidinitializeSuccessors(Queue<ViewLifecyclePhase> successors) Initializes queue of successor phases.voidrecycle()Resets this phase for recycling.protected voidVerify that the render phase has no pending children.Methods inherited from class org.kuali.rice.krad.uif.lifecycle.ViewLifecyclePhaseBase
getCurrentTask, getDepth, getElement, getNestedPropertiesForRefreshPath, getParent, getParentPath, getPredecessor, getRefreshPaths, getViewPath, hasPendingSuccessors, initializeAllLifecycleSuccessors, initializeRefreshPathSuccessors, initializeSuccessor, isComplete, isProcessed, notifyCompleted, prepare, processSuccessors, removePendingSuccessor, run, setNextPhase, setPredecessor, setRefreshPaths, setSkipLifecycleTasks, setTasks, setViewPath, shouldSkipLifecycle, toString, trace, validateBeforeProcessing
-
Constructor Details
-
FinalizeComponentPhase
public FinalizeComponentPhase()
-
-
Method Details
-
recycle
public void recycle()Resets this phase for recycling.- Specified by:
recyclein interfaceViewLifecyclePhase- Overrides:
recyclein classViewLifecyclePhaseBase
-
getViewPhase
Gets the view lifecycle phase constant that corresponds to this phase processing task.- Returns:
- UifConstants.ViewPhases.FINALIZE
- See Also:
-
getStartViewStatus
Gets the expected view status prior to phase execution.- Returns:
- UifConstants.ViewStatus.MODEL_APPLIED
-
getEndViewStatus
Gets the expected view status after phase execution.- Returns:
- UifConstants.ViewStatus.FINAL
-
getEventToNotify
Gets the event to notify on completion.- Returns:
- LifecycleEvent.LIFECYCLE_COMPLETE
- See Also:
-
verifyCompleted
protected void verifyCompleted()Verify that the render phase has no pending children.- Overrides:
verifyCompletedin classViewLifecyclePhaseBase
-
initializeSuccessors
Initializes queue of successor phases.This method will be called while processing this phase after all tasks have been performed, to determine phases to queue for successor processing. This phase will not be considered complete until all successors queued by this method, and all subsequent successor phases, have completed processing.
- Overrides:
initializeSuccessorsin classViewLifecyclePhaseBase- Parameters:
successors- The queue of successor phases
-