Interface WorkItemPropertyDisplayerManager
@Role
public interface WorkItemPropertyDisplayerManager
Offers a centralized way of accessing a subset/all the existing
WorkItemPropertyDisplayer.- Version:
- $Id$
-
Method Summary
Modifier and TypeMethodDescriptionList<org.xwiki.rendering.block.Block>Finds theWorkItemPropertyDisplayerassociated with the given property and passes the parameters to it.getDisplayerForProperty(String property) Provides a way to check if the manager has any displayer registered for a given property.
-
Method Details
-
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
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.
-