public abstract class ConfigurableBase extends Object implements Configurable
Configurable that contains a Map
Should be extended by other UIF classes (such as Component or LayoutManager) to
provide property expression support
| Constructor and Description |
|---|
ConfigurableBase() |
| 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
|
public ConfigurableBase()
public Map<String,String> getPropertyExpressions()
ConfigurableWhen 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
getPropertyExpressions in interface ConfigurablegetPropertyExpressions()public void setPropertyExpressions(Map<String,String> propertyExpressions)
ConfigurablesetPropertyExpressions in interface ConfigurablesetPropertyExpressions(java.util.Map<java.lang.String, java.lang.String>)public String getPropertyExpression(String propertyName)
ConfigurablegetPropertyExpression in interface ConfigurablegetPropertyExpression(java.lang.String)Copyright © 2005–2016 The Kuali Foundation. All rights reserved.