Package org.ametys.web.renderingcontext
Class RenderingContextHandler
- java.lang.Object
-
- org.ametys.web.renderingcontext.RenderingContextHandler
-
- All Implemented Interfaces:
Component
,Contextualizable
public class RenderingContextHandler extends Object implements Component, Contextualizable
Component for getting and setting current rendering context
-
-
Constructor Summary
Constructors Constructor Description RenderingContextHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
contextualize(Context context)
RenderingContext
getRenderingContext()
Retrieves the current rendering context.void
setRenderingContext(RenderingContext renderingMode)
Set the current rendering context.
-
-
-
Constructor Detail
-
RenderingContextHandler
public RenderingContextHandler()
-
-
Method Detail
-
contextualize
public void contextualize(Context context) throws ContextException
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
setRenderingContext
public void setRenderingContext(RenderingContext renderingMode)
Set the current rendering context.- Parameters:
renderingMode
- the current rendering context.
-
getRenderingContext
public RenderingContext getRenderingContext()
Retrieves the current rendering context.- Returns:
- the current rendering context or
null
for the default one.
-
-