Class ViewLifecyclePhaseBuilderBase
java.lang.Object
org.kuali.rice.krad.uif.lifecycle.ViewLifecyclePhaseBuilderBase
- All Implemented Interfaces:
ViewLifecyclePhaseBuilder
Default phase builder implementation.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ViewLifecyclePhaseCreates an instance of theApplyModelComponentPhasephase with configured tasks.protected ViewLifecyclePhaseCreates an instance of theFinalizeComponentPhasephase with configured tasks.protected ViewLifecyclePhaseCreates an instance of theInitializeComponentPhasephase with configured tasks.buildPhase(String viewPhase, LifecycleElement element, Component parent, String parentPath, List<String> refreshPaths) Creates a lifecycle phase instance for a specific component in the current lifecycle.buildPhase(View view, String viewPhase, List<String> refreshPaths) Creates a lifecycle phase instance for the given view.protected ViewLifecyclePhaseCreates an instance of thePreProcessElementPhasephase with configured tasks.protected ViewLifecyclePhaseCreates an instance of theRenderComponentPhasephase with configured tasks.protected ViewLifecyclePhaseDetermines if the previous phases have been run for the given element and if not backs up until it finds the first phase we need to run.protected ViewLifecyclePhasegetPhaseInstance(String viewPhase) Build a phase instance for processing the given view phase.protected static StringReturn the previous view phase, for automatic phase spawning.
-
Constructor Details
-
ViewLifecyclePhaseBuilderBase
public ViewLifecyclePhaseBuilderBase()
-
-
Method Details
-
buildPhase
Creates a lifecycle phase instance for the given view.- Specified by:
buildPhasein interfaceViewLifecyclePhaseBuilder- Parameters:
view- view instance the phase should be built forviewPhase- View phase to build an instance for- Returns:
- pre-process phase instance
- See Also:
-
buildPhase
public ViewLifecyclePhase buildPhase(String viewPhase, LifecycleElement element, Component parent, String parentPath, List<String> refreshPaths) Creates a lifecycle phase instance for a specific component in the current lifecycle.- Specified by:
buildPhasein interfaceViewLifecyclePhaseBuilder- Parameters:
viewPhase- view phase to build an instance forelement- lifecycle element to build an instance forparent- parent componentparentPath- path relative to the parent component referring to the lifecycle element- Returns:
- phase instance
-
finishBuildPhase
Determines if the previous phases have been run for the given element and if not backs up until it finds the first phase we need to run.- Parameters:
phase- phase being requested- Returns:
- phase that should be run
-
getPreviousViewPhase
Return the previous view phase, for automatic phase spawning.- Returns:
- phase view phase
-
getPhaseInstance
Build a phase instance for processing the given view phase.- Parameters:
viewPhase- name of the view phase to return- Returns:
- phase instance
-
buildPreProcessPhase
Creates an instance of thePreProcessElementPhasephase with configured tasks.- Returns:
- view lifecycle phase instance
-
buildInitializePhase
Creates an instance of theInitializeComponentPhasephase with configured tasks.- Returns:
- view lifecycle phase instance
-
buildApplyModelPhase
Creates an instance of theApplyModelComponentPhasephase with configured tasks.- Returns:
- view lifecycle phase instance
-
buildFinalizePhase
Creates an instance of theFinalizeComponentPhasephase with configured tasks.- Returns:
- view lifecycle phase instance
-
buildRenderPhase
Creates an instance of theRenderComponentPhasephase with configured tasks.- Returns:
- view lifecycle phase instance
-