T
- Top level element type for this taskpublic abstract class ViewLifecycleTaskBase<T> extends Object implements ViewLifecycleTask<T>
Modifier | Constructor and Description |
---|---|
protected |
ViewLifecycleTaskBase(Class<T> elementType)
Creates a lifecycle processing task for a specific phase.
|
Modifier and Type | Method and Description |
---|---|
LifecycleElementState |
getElementState()
Gets the phase this lifecycle task is a part of.
|
Class<T> |
getElementType()
Gets the top level lifecycle element type that this task applies to.
|
protected abstract void |
performLifecycleTask()
Performs phase-specific lifecycle processing tasks.
|
void |
run()
Executes the lifecycle task.
|
void |
setElementState(LifecycleElementState elementState)
Sets the phase on a recycled task.
|
String |
toString() |
protected ViewLifecycleTaskBase(Class<T> elementType)
elementType
- Top level element typepublic final void run()
This method performs state validation and updates component view status. Override
performLifecycleTask()
to provide task-specific behavior.
protected abstract void performLifecycleTask()
public LifecycleElementState getElementState()
getElementState
in interface ViewLifecycleTask<T>
public void setElementState(LifecycleElementState elementState)
setElementState
in interface ViewLifecycleTask<T>
elementState
- The phase to set.getElementState()
public Class<T> getElementType()
If an element is not a subclass of this type, then the task will not be performed on that element.
getElementType
in interface ViewLifecycleTask<T>
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.