Package org.opencms.jsp
Class CmsDefaultElementMarker
java.lang.Object
org.opencms.jsp.CmsDefaultElementMarker
- All Implemented Interfaces:
I_CmsConfigurationParameterHandler,I_CmsElementMarker
Default
I_CmsElementMarker that emits nothing.
Used when no edit-marker-handler is configured, so the container and display tags can
always call the configured marker without a null check.
- Since:
- 22.0.0
-
Field Summary
Fields inherited from interface org.opencms.configuration.I_CmsConfigurationParameterHandler
ADD_PARAMETER_METHOD, INIT_CONFIGURATION_METHOD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConfigurationParameter(String paramName, String paramValue) Adds a configuration parameter to this parameter configurable class instance.voidaddEndMarker(jakarta.servlet.jsp.PageContext context, CmsContainerElementBean element) Adds the end marker for an element to the page output.voidaddStartMarker(jakarta.servlet.jsp.PageContext context, CmsContainerElementBean element, I_CmsFormatterBean formatter) Adds the start marker for an element to the page output.Returns the parameters of this configurable class instance, ornullif the class does not need any parameters.voidInitializes a configuration after all parameters have been added.
-
Constructor Details
-
CmsDefaultElementMarker
public CmsDefaultElementMarker()
-
-
Method Details
-
addConfigurationParameter
Description copied from interface:I_CmsConfigurationParameterHandlerAdds a configuration parameter to this parameter configurable class instance.- Specified by:
addConfigurationParameterin interfaceI_CmsConfigurationParameterHandler- Parameters:
paramName- the name of the parameterparamValue- the value for the parameter- See Also:
-
addEndMarker
Description copied from interface:I_CmsElementMarkerAdds the end marker for an element to the page output.- Specified by:
addEndMarkerin interfaceI_CmsElementMarker- Parameters:
context- the page contextelement- the element- See Also:
-
addStartMarker
public void addStartMarker(jakarta.servlet.jsp.PageContext context, CmsContainerElementBean element, I_CmsFormatterBean formatter) Description copied from interface:I_CmsElementMarkerAdds the start marker for an element to the page output.- Specified by:
addStartMarkerin interfaceI_CmsElementMarker- Parameters:
context- the page contextelement- the elementformatter- the formatter the element is rendered with, ornull- See Also:
-
getConfiguration
Description copied from interface:I_CmsConfigurationParameterHandlerReturns the parameters of this configurable class instance, ornullif the class does not need any parameters.- Specified by:
getConfigurationin interfaceI_CmsConfigurationParameterHandler- Returns:
- the parameters of this configurable class instance,
or
nullif the class does not need any parameters - See Also:
-
initConfiguration
Description copied from interface:I_CmsConfigurationParameterHandlerInitializes a configuration after all parameters have been added.- Specified by:
initConfigurationin interfaceI_CmsConfigurationParameterHandler- Throws:
CmsConfigurationException- if something goes wrong- See Also:
-