|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.datadictionary.DictionaryBeanBase org.kuali.rice.krad.datadictionary.uif.UifDictionaryBeanBase
public class UifDictionaryBeanBase
Common base class for dictionary objects that can contain dynamic expressions within the property value
Should be extended by other classes to provide property expression support
Constructor Summary | |
---|---|
UifDictionaryBeanBase()
|
Method Summary | ||
---|---|---|
protected
|
copyProperties(T dictionaryBaseBean)
Copies properties for copy() |
|
Map<String,String> |
getExpressionGraph()
Map of expressions that were configured for the object's graph |
|
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 |
|
Map<String,String> |
getRefreshExpressionGraph()
Map of expressions that should apply when the component is refresh |
|
void |
setExpressionGraph(Map<String,String> expressionGraph)
Setter for the map of expressions contained on the configurable graph |
|
void |
setPropertyExpressions(Map<String,String> propertyExpressions)
Setter for the Map of property expressions |
|
void |
setRefreshExpressionGraph(Map<String,String> refreshExpressionGraph)
Setter for the component's refresh expression graph |
Methods inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase |
---|
copy, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCode |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.kuali.rice.krad.datadictionary.DictionaryBean |
---|
getComponentCode, getNamespaceCode |
Constructor Detail |
---|
public UifDictionaryBeanBase()
Method Detail |
---|
public Map<String,String> getExpressionGraph()
UifDictionaryBean
During processing of the UIF configuration, expressions are pulled out and placed into this map for the component graph. A component graph contains the component and all one to one nested components (but not those that are contained in collections, each of these begins another graph). The expressions are placed at the root component level instead of the actual nested component for handling of nested property configuration and overridding
The expression graph map key gives the property name (possibly nested) the expression was configured on, and the
map value gives the expression. During the view lifecycle,
see org.kuali.rice.krad.uif.service.impl.ViewHelperServiceImpl#performComponentApplyModel(org.kuali.rice.krad.uif.view.View,
org.kuali.rice.krad.uif.component.Component, java.lang.Object)
,
the expressions are moved to the UifDictionaryBean.getPropertyExpressions()
map for the configurable they should be
evaluated on
getExpressionGraph
in interface UifDictionaryBean
UifDictionaryBean.getExpressionGraph()
public void setExpressionGraph(Map<String,String> expressionGraph)
UifDictionaryBean
setExpressionGraph
in interface UifDictionaryBean
org.kuali.rice.krad.datadictionary.uif.UifDictionaryBean#setExpressionGraph(java.util.Map)
public Map<String,String> getRefreshExpressionGraph()
UifDictionaryBean
Expressions may exist on a parent component that impact the component state when it is being refreshed. These expressions are pulled out and placed into this map for evaluation during the refresh process
getRefreshExpressionGraph
in interface UifDictionaryBean
UifDictionaryBean.getRefreshExpressionGraph()
public void setRefreshExpressionGraph(Map<String,String> refreshExpressionGraph)
UifDictionaryBean
setRefreshExpressionGraph
in interface UifDictionaryBean
org.kuali.rice.krad.datadictionary.uif.UifDictionaryBean#setRefreshExpressionGraph(java.util.Map)
public Map<String,String> getPropertyExpressions()
UifDictionaryBean
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
getPropertyExpressions
in interface UifDictionaryBean
UifDictionaryBean.getPropertyExpressions()
public void setPropertyExpressions(Map<String,String> propertyExpressions)
UifDictionaryBean
setPropertyExpressions
in interface UifDictionaryBean
UifDictionaryBean.setPropertyExpressions(java.util.Map)
public String getPropertyExpression(String propertyName)
UifDictionaryBean
getPropertyExpression
in interface UifDictionaryBean
UifDictionaryBean.getPropertyExpression(java.lang.String)
protected <T> void copyProperties(T dictionaryBaseBean)
DictionaryBeanBase
copyProperties
in class DictionaryBeanBase
dictionaryBaseBean
- base bean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |