public class ChromeDetectionDirective
extends org.springframework.extensions.surf.extensibility.impl.AbstractExtensibilityDirective
This directive is used to determine whether or not Surf Region Chrome is enabled and if not will output the
<div> element containing the unique HTML ID generated for the Component. This has been created to allow
the deprecation of Surf Region Chrome which can be disabled by setting the <region-chrome> configuration
to have no value which will eventually become the default Surf setting.
| Constructor and Description |
|---|
ChromeDetectionDirective(String directiveName,
org.springframework.extensions.surf.extensibility.ExtensibilityModel model,
WebFrameworkConfigElement webFrameworkConfig,
RequestContext context) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.extensions.surf.extensibility.ExtensibilityDirectiveData |
createExtensibilityDirectiveData(String id,
String action,
String target,
Map params,
freemarker.template.TemplateDirectiveBody body,
freemarker.core.Environment env)
Creates a new
ChromeDetectionDirectiveData instance which will in turn be used to create the
ChromeDetectionContentModelElement that will output the <div> element containing the
unique HTML ID if required. |
WebFrameworkConfigElement |
getConfig() |
RequestContext |
getContext() |
after, before, execute, getId, getModel, merge, remove, replacepublic ChromeDetectionDirective(String directiveName, org.springframework.extensions.surf.extensibility.ExtensibilityModel model, WebFrameworkConfigElement webFrameworkConfig, RequestContext context)
public WebFrameworkConfigElement getConfig()
WebFrameworkConfigElement that this ChromeDetectionDirective was instantiated with.public RequestContext getContext()
RequestContext that this ChromeDetectionDirective was instantiated with.public org.springframework.extensions.surf.extensibility.ExtensibilityDirectiveData createExtensibilityDirectiveData(String id, String action, String target, Map params, freemarker.template.TemplateDirectiveBody body, freemarker.core.Environment env) throws freemarker.template.TemplateException
Creates a new ChromeDetectionDirectiveData instance which will in turn be used to create the
ChromeDetectionContentModelElement that will output the <div> element containing the
unique HTML ID if required.
createExtensibilityDirectiveData in class org.springframework.extensions.surf.extensibility.impl.AbstractExtensibilityDirectivefreemarker.template.TemplateExceptionCopyright © 2005–2016 Alfresco Software. All rights reserved.