Class ApplyModelComponentPhase
java.lang.Object
org.kuali.rice.krad.uif.lifecycle.ViewLifecyclePhaseBase
org.kuali.rice.krad.uif.lifecycle.ApplyModelComponentPhase
- All Implemented Interfaces:
Runnable,LifecycleElementState,ViewLifecyclePhase
Lifecycle phase processing task for applying the model to a component.
During the apply model phase each component of the tree if invoked to setup any state based on the given model data
Part of the view lifecycle that applies the model data to the view. Should be called after the model has been populated before the view is rendered. The main things that occur during this phase are:
- Generation of dynamic fields (such as collection rows)
- Execution of conditional logic (hidden, read-only, required settings based on model values)
The update phase can be called multiple times for the view's lifecycle (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.booleanvisit(LifecycleElement element) Visit a lifecycle element.Methods inherited from class org.kuali.rice.krad.uif.lifecycle.ViewLifecyclePhaseBase
getCurrentTask, getDepth, getElement, getNestedPropertiesForRefreshPath, getParent, getParentPath, getPredecessor, getRefreshPaths, getViewPath, hasPendingSuccessors, initializeAllLifecycleSuccessors, initializeRefreshPathSuccessors, initializeSuccessor, initializeSuccessors, isComplete, isProcessed, notifyCompleted, prepare, processSuccessors, recycle, removePendingSuccessor, run, setNextPhase, setPredecessor, setRefreshPaths, setSkipLifecycleTasks, setTasks, setViewPath, shouldSkipLifecycle, toString, trace, validateBeforeProcessing, verifyCompleted
-
Constructor Details
-
ApplyModelComponentPhase
public ApplyModelComponentPhase()
-
-
Method Details
-
getViewPhase
Gets the view lifecycle phase constant that corresponds to this phase processing task.- Returns:
- view lifecycle phase constant corresponding to this phase
- See Also:
-
getStartViewStatus
Gets the expected view status prior to phase execution.- Returns:
- expected view status prior to phase execution
-
getEndViewStatus
Gets the expected view status after phase execution.- Returns:
- expected view status after phase execution
-
getEventToNotify
Gets the event to notify on completion.- Returns:
- lifecycle event to notify on completion
- See Also:
-
visit
Visit a lifecycle element.- Parameters:
element- The lifecycle element (component or layout manager) to mark as visisted.- Returns:
- True if the element has been visited before, false if this was the first visit.
-