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

public abstract class ViewLifecycleTaskBase<T> extends Object implements ViewLifecycleTask<T>
Base abstract implementation for a lifecycle task.
Author:
Kuali Rice Team (rice.collab@kuali.org)
  • Constructor Details

    • ViewLifecycleTaskBase

      protected ViewLifecycleTaskBase(Class<T> elementType)
      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.

      Specified by:
      run in interface Runnable
    • performLifecycleTask

      protected abstract void performLifecycleTask()
      Performs phase-specific lifecycle processing tasks.
    • getElementState

      public LifecycleElementState getElementState()
      Gets the phase this lifecycle task is a part of.
      Specified by:
      getElementState in interface ViewLifecycleTask<T>
      Returns:
      lifecycle phase
    • setElementState

      public void setElementState(LifecycleElementState elementState)
      Sets the phase on a recycled task.
      Specified by:
      setElementState in interface ViewLifecycleTask<T>
      Parameters:
      elementState - The phase to set.
      See Also:
    • getElementType

      public Class<T> 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:
      getElementType in interface ViewLifecycleTask<T>
      Returns:
      lifecycle element type
    • toString

      public String toString()
      Overrides:
      toString in class Object