Interface WorkItemPropertyDisplayerManager
-
@Role public interface WorkItemPropertyDisplayerManagerOffers a centralized way of accessing a subset/all the existingWorkItemPropertyDisplayer.- Version:
- $Id$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<org.xwiki.rendering.block.Block>displayProperty(String propertyName, Object propertyValue, Map<String,Object> parameters)Finds theWorkItemPropertyDisplayerassociated with the given property and passes the parameters to it.WorkItemPropertyDisplayergetDisplayerForProperty(String property)Provides a way to check if the manager has any displayer registered for a given property.
-
-
-
Method Detail
-
displayProperty
List<org.xwiki.rendering.block.Block> displayProperty(String propertyName, Object propertyValue, Map<String,Object> parameters)
Finds theWorkItemPropertyDisplayerassociated with the given property and passes the parameters to it.- Parameters:
propertyName- the name of the property that needs displaying.propertyValue- the value of the said property.parameters- any additional parameters that might be needed by theWorkItemPropertyDisplayerimplementation.- Returns:
- a list of blocks that represent how the property should be displayed.
-
getDisplayerForProperty
WorkItemPropertyDisplayer getDisplayerForProperty(String property)
Provides a way to check if the manager has any displayer registered for a given property.- Parameters:
property- the name of the property that might or might not have a displayer associated.- Returns:
- the
WorkItemPropertyDisplayerassociated with the property or null.
-
-