public class ChromeDetectionContentModelElement
extends org.springframework.extensions.surf.extensibility.impl.DefaultContentModelElement
A ContentModelElement that will wrap its contents in a <div> element with a unique
id when Surf Region Chrome is disabled.
| Modifier and Type | Field and Description |
|---|---|
static String |
CLOSE_ELEMENT |
static String |
OPEN_ELEMENT_1 |
static String |
OPEN_ELEMENT_2 |
| Constructor and Description |
|---|
ChromeDetectionContentModelElement(String id,
String directiveName,
String htmlId)
Instantiates a new
ChromeDetectionContentModelElement |
| Modifier and Type | Method and Description |
|---|---|
String |
flushContent()
Overrides the default implementation to wrap the content in a <
div> element with a unique "id" attribute when
Surf Region Chrome is disabled. |
equals, getNextContentBufferElement, getType, hashCode, parseContent, validateContentgetDirectiveName, getId, toStringpublic static final String OPEN_ELEMENT_1
public static final String OPEN_ELEMENT_2
public static final String CLOSE_ELEMENT
public ChromeDetectionContentModelElement(String id, String directiveName, String htmlId)
Instantiates a new ChromeDetectionContentModelElement
id - The id of the directive.directiveName - The name of the directive.htmlId - The unique HTML ID that should be used as the "id" attribute of a wrapping <div> element
when Surf Region Chrome is disabled. If this is null then the <div> will not be output.public String flushContent()
Overrides the default implementation to wrap the content in a <div> element with a unique "id" attribute when
Surf Region Chrome is disabled.
flushContent in interface org.springframework.extensions.surf.extensibility.ContentModelElementflushContent in class org.springframework.extensions.surf.extensibility.impl.DefaultContentModelElementCopyright © 2005–2016 Alfresco Software. All rights reserved.