Interface ProjectContentRendererRegistry
- All Known Implementing Classes:
ProjectContentRendererRegistryImpl
public interface ProjectContentRendererRegistry
Provides a registry of
ProjectContentRenderer. This registry allows products to specify a ProjectContentRenderer for a particular Project Type, allowing them to customize the content of the Navigation panel
in the Sidebar.- Since:
- v3.0.3
-
Method Summary
Modifier and TypeMethodDescriptiongetRenderer(ProjectTypeKey projectTypeKey) Returns the registeredProjectContentRendererfor the givenProjectTypeKey, with two exceptions: the given projectTypeKey doesn't have aProjectContentRendererregistered, or theProjectTypesDarkFeatureis not enabled.voidregister(ProjectTypeKey projectType, ProjectContentRenderer renderer) Registers aProjectContentRendererfor a givenProjectTypeKey.voidunregister(ProjectTypeKey projectType) Un-registers *any*ProjectContentRendererassociated to aProjectTypeKey.
-
Method Details
-
register
Registers aProjectContentRendererfor a givenProjectTypeKey. If thatProjectTypeKeyalready has aProjectContentRenderer, it is replaced.- Parameters:
projectType- The key to register.renderer- The renderer to use.
-
unregister
Un-registers *any*ProjectContentRendererassociated to aProjectTypeKey. After calling this method, calling getRenderer() with the sameProjectTypeKeywill always return the defaultProjectContentRenderer- Parameters:
projectType- The key to unregister.
-
getRenderer
Returns the registeredProjectContentRendererfor the givenProjectTypeKey, with two exceptions: the given projectTypeKey doesn't have aProjectContentRendererregistered, or theProjectTypesDarkFeatureis not enabled. In those two cases, this method will return the defaultProjectContentRendererused in the sidebar for Business types.- Parameters:
projectTypeKey- The key to get.- Returns:
- The renderer associated to the key, or the render used for Business types.
-