Package org.ametys.web.renderingcontext
Class RenderingContextHandler
java.lang.Object
org.ametys.web.renderingcontext.RenderingContextHandler
- All Implemented Interfaces:
Component
,Contextualizable
Component for getting and setting current rendering context
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
contextualize
(Context context) Retrieves the current rendering context.void
setRenderingContext
(RenderingContext renderingMode) Set the current rendering context.
-
Field Details
-
ROLE
Avalon role
-
-
Constructor Details
-
RenderingContextHandler
public RenderingContextHandler()
-
-
Method Details
-
contextualize
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
setRenderingContext
Set the current rendering context.- Parameters:
renderingMode
- the current rendering context.
-
getRenderingContext
Retrieves the current rendering context.- Returns:
- the current rendering context or
null
for the default one.
-