public abstract class ComponentModifierBase extends UifDictionaryBeanBase implements ComponentModifier
ComponentModifier
implementations
Holds run phase property and defaults to the INITIALIZE phase, and the order property for setting the order in which the component modifier will be invoked
componentCode, namespaceCode
INITIAL_ORDER_VALUE
Constructor and Description |
---|
ComponentModifierBase() |
Modifier and Type | Method and Description |
---|---|
List<Component> |
getComponentPrototypes()
List of components that are maintained by the modifier as prototypes for creating other component instances
|
int |
getOrder() |
String |
getRunCondition()
Conditional expression to evaluate for determining whether the component
modifier should be run.
|
String |
getRunPhase()
Indicates what phase of the component lifecycle the
ComponentModifier should be invoked in (INITIALIZE,
APPLY_MODEL, or FINALIZE) |
void |
performInitialization(Object model,
Component component)
Default performInitialization impl (does nothing)
Should be called to initialize the ComponentModifier
|
void |
setOrder(int order)
Setter for the order value
|
void |
setRunCondition(String runCondition)
Setter for the component modifiers run condition
|
void |
setRunPhase(String runPhase)
Setter for the component initializer run phase
|
getExpressionGraph, getPropertyExpression, getPropertyExpressions, setExpressionGraph, setPropertyExpressions
clone, copy, dataDictionaryPostProcessing, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCode
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSupportedComponents, performModification
getExpressionGraph, getPropertyExpression, getPropertyExpressions, setExpressionGraph, setPropertyExpressions
dataDictionaryPostProcessing, getComponentCode, getNamespaceCode
public ComponentModifierBase()
public void performInitialization(Object model, Component component)
This is where component modifiers can set defaults and setup other necessary state. The initialize method should only be called once per layout manager lifecycle and is invoked within the initialize phase of the view lifecylce.
Note if the component modifier holds nested components, they should be initialized in this method by calling the view helper service
performInitialization
in interface ComponentModifier
model
- - object instance containing the view datacomponent
- - Component the modifier is configured onRunComponentModifiersTask
public List<Component> getComponentPrototypes()
ComponentModifier
Prototypes are held for configuring how a component should be created during the lifecycle. An example of this are the fields in a collection group that are created for each collection record. They only participate in the initialize phase.
getComponentPrototypes
in interface ComponentModifier
getComponentPrototypes()
public String getRunPhase()
ComponentModifier
ComponentModifier
should be invoked in (INITIALIZE,
APPLY_MODEL, or FINALIZE)getRunPhase
in interface ComponentModifier
ComponentModifier.getRunPhase()
public void setRunPhase(String runPhase)
runPhase
- public String getRunCondition()
ComponentModifier
getRunCondition
in interface ComponentModifier
ComponentModifier.getRunCondition()
public void setRunCondition(String runCondition)
runCondition
- public int getOrder()
getOrder
in interface ComponentModifier
getOrder
in interface org.springframework.core.Ordered
Ordered.getOrder()
public void setOrder(int order)
Ordered
setOrder
in interface ComponentModifier
Ordered.setOrder(int)
Copyright © 2005–2015 The Kuali Foundation. All rights reserved.