Class ComponentModifierBase
- All Implemented Interfaces:
Serializable,Cloneable,Copyable,DictionaryBean,UifDictionaryBean,Ordered,ComponentModifier,org.springframework.core.Ordered
- Direct Known Subclasses:
CompareFieldCreateModifier,ComponentConvertModifier,LabelSeparateModifier
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
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Field Summary
Fields inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase
componentCode, namespaceCodeFields inherited from interface org.kuali.rice.krad.uif.component.Ordered
INITIAL_ORDER_VALUEFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList of components that are maintained by the modifier as prototypes for creating other component instancesintgetOrder()Conditional expression to evaluate for determining whether the component modifier should be run.Indicates what phase of the component lifecycle theComponentModifiershould be invoked in (INITIALIZE, APPLY_MODEL, or FINALIZE)voidperformInitialization(Object model, Component component) Default performInitialization impl (does nothing) Should be called to initialize the ComponentModifiervoidsetOrder(int order) Setter for the order valuevoidsetRunCondition(String runCondition) Setter for the component modifiers run conditionvoidsetRunPhase(String runPhase) Setter for the component initializer run phaseMethods inherited from class org.kuali.rice.krad.datadictionary.uif.UifDictionaryBeanBase
getExpressionGraph, getPropertyExpression, getPropertyExpressions, setExpressionGraph, setPropertyExpressionsMethods inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase
clone, copy, dataDictionaryPostProcessing, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCodeMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.kuali.rice.krad.uif.modifier.ComponentModifier
getSupportedComponents, performModificationMethods inherited from interface org.kuali.rice.krad.datadictionary.DictionaryBean
dataDictionaryPostProcessing, getComponentCode, getNamespaceCodeMethods inherited from interface org.kuali.rice.krad.datadictionary.uif.UifDictionaryBean
getExpressionGraph, getPropertyExpression, getPropertyExpressions, setExpressionGraph, setPropertyExpressions
-
Constructor Details
-
ComponentModifierBase
public ComponentModifierBase()
-
-
Method Details
-
performInitialization
Default performInitialization impl (does nothing) Should be called to initialize the ComponentModifierThis 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
- Specified by:
performInitializationin interfaceComponentModifier- Parameters:
model- - object instance containing the view datacomponent- - Component the modifier is configured on- See Also:
-
getComponentPrototypes
Description copied from interface:ComponentModifierList of components that are maintained by the modifier as prototypes for creating other component instancesPrototypes 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.
- Specified by:
getComponentPrototypesin interfaceComponentModifier- Returns:
- List<Component> child component prototypes
- See Also:
-
getRunPhase
Description copied from interface:ComponentModifierIndicates what phase of the component lifecycle theComponentModifiershould be invoked in (INITIALIZE, APPLY_MODEL, or FINALIZE)- Specified by:
getRunPhasein interfaceComponentModifier- Returns:
- String view lifecycle phase
- See Also:
-
setRunPhase
Setter for the component initializer run phase- Parameters:
runPhase-
-
getRunCondition
Description copied from interface:ComponentModifierConditional expression to evaluate for determining whether the component modifier should be run. If the expression evaluates to true the modifier will be executed, otherwise it will not be executed- Specified by:
getRunConditionin interfaceComponentModifier- Returns:
- String el expression that should evaluate to boolean
- See Also:
-
setRunCondition
Setter for the component modifiers run condition- Parameters:
runCondition-
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceComponentModifier- Specified by:
getOrderin interfaceorg.springframework.core.Ordered- See Also:
-
setOrder
public void setOrder(int order) Description copied from interface:OrderedSetter for the order value- Specified by:
setOrderin interfaceComponentModifier- Specified by:
setOrderin interfaceOrdered- Parameters:
order-- See Also:
-