Class ViewLifecycleTaskBase<T>
java.lang.Object
org.kuali.rice.krad.uif.lifecycle.ViewLifecycleTaskBase<T>
- Type Parameters:
T- Top level element type for this task
- All Implemented Interfaces:
Runnable,ViewLifecycleTask<T>
- Direct Known Subclasses:
AddFocusAndJumpDataAttributesTask,AddViewTemplatesTask,AfterEvaluateExpressionTask,ApplyAuthAndPresentationLogicTask,AssignIdsTask,ComponentDefaultApplyModelTask,ComponentDefaultFinalizeTask,ComponentDefaultInitializeTask,EvaluateExpressionsTask,FinalizeViewTask,HelperCustomApplyModelTask,HelperCustomFinalizeTask,HelperCustomInitializeTask,InitializeContainerFromHelperTask,InitializeDataFieldFromDictionaryTask,InvokeFinalizerTask,PopulateComponentContextTask,PopulateComponentFromExpressionGraphTask,PopulatePathTask,PopulateReplacersAndModifiersFromExpressionGraphTask,PrepareForCacheTask,ProcessRemoteFieldsHolderTask,RefreshStateModifyTask,RegisterPropertyEditorTask,RenderComponentTask,RunComponentModifiersTask,SetReadOnlyOnDataBindingTask,SortContainerTask,SuffixIdFromContainerTask,SyncClientSideStateTask
Base abstract implementation for a lifecycle task.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedViewLifecycleTaskBase(Class<T> elementType) Creates a lifecycle processing task for a specific phase. -
Method Summary
Modifier and TypeMethodDescriptionGets the phase this lifecycle task is a part of.Gets the top level lifecycle element type that this task applies to.protected abstract voidPerforms phase-specific lifecycle processing tasks.final voidrun()Executes the lifecycle task.voidsetElementState(LifecycleElementState elementState) Sets the phase on a recycled task.toString()
-
Constructor Details
-
ViewLifecycleTaskBase
Creates a lifecycle processing task for a specific phase.- Parameters:
elementType- Top level element type
-
-
Method Details
-
run
public final void run()Executes the lifecycle task.This method performs state validation and updates component view status. Override
performLifecycleTask()to provide task-specific behavior. -
performLifecycleTask
protected abstract void performLifecycleTask()Performs phase-specific lifecycle processing tasks. -
getElementState
Gets the phase this lifecycle task is a part of.- Specified by:
getElementStatein interfaceViewLifecycleTask<T>- Returns:
- lifecycle phase
-
setElementState
Sets the phase on a recycled task.- Specified by:
setElementStatein interfaceViewLifecycleTask<T>- Parameters:
elementState- The phase to set.- See Also:
-
getElementType
Gets the top level lifecycle element type that this task applies to.If an element is not a subclass of this type, then the task will not be performed on that element.
- Specified by:
getElementTypein interfaceViewLifecycleTask<T>- Returns:
- lifecycle element type
-
toString
-