public interface Configurable
Indicates behavior that must be supported by an Class that can be configured through the UIF dictionary, such as property expressions.
Modifier and Type | Method and Description |
---|---|
String |
getPropertyExpression(String propertyName)
Returns the expression configured for the property with the given name
|
Map<String,String> |
getPropertyExpressions()
Map of expressions that should be evaluated to conditionally set a property on the component
|
void |
setPropertyExpressions(Map<String,String> propertyExpressions)
Setter for the Map of property expressions
|
Map<String,String> getPropertyExpressions()
When configuring a component property through XML an expression can be given using the @{} placeholder. During the loading of the XML any such expressions are captured and placed into this Map, with the property they apply to set as the Map key. The expressions are then evaluated during the apply model phase and the result is set as the property value.
Note after the expression is picked up, the property configuration is removed. Thus the property in the component will only have its default object value until the expression is evaluated
void setPropertyExpressions(Map<String,String> propertyExpressions)
propertyExpressions
- String getPropertyExpression(String propertyName)
getPropertyExpressions()
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.