@ProviderType
public interface DesignHtmlLibraryManager
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_CSS
Resource name for the CSS library configuration within a configuration resource.
|
static String |
PROPERTY_JS
Resource name for the JavaScript library configuration within a configuration resource.
|
static String |
RESOURCE_NAME
Resource name for the client library configuration within a design resource.
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
getCssLibraries(com.day.cq.wcm.api.designer.Design design,
PageRegion pageRegion)
Returns an ordered list of all CSS (as specified on the Design page) client libraries associated with the
pageRegion for the design.
|
String[] |
getJsLibraries(com.day.cq.wcm.api.designer.Design design,
PageRegion pageRegion)
Returns an ordered list of all JS (as specified on the Design page) client libraries associated with the
pageRegion for the design.
|
String[] |
getLibraries(com.day.cq.wcm.api.designer.Design design,
PageRegion pageRegion)
Returns an ordered list of all (CSS and JS; as specified on the Design page) client libraries associated with
the pageRegion for the design.
|
void |
writeCssInclude(org.apache.sling.api.SlingHttpServletRequest request,
com.day.cq.wcm.api.designer.Design design,
PageRegion pageRegion,
Writer writer)
Writes the CSS include snippets to the given writer.
|
void |
writeIncludes(org.apache.sling.api.SlingHttpServletRequest request,
com.day.cq.wcm.api.designer.Design design,
PageRegion pageRegion,
Writer writer)
Writes the include snippets to the given writer.
|
void |
writeJsInclude(org.apache.sling.api.SlingHttpServletRequest request,
com.day.cq.wcm.api.designer.Design design,
PageRegion pageRegion,
Writer writer)
Writes the JS include snippets to the given writer.
|
static final String RESOURCE_NAME
static final String PROPERTY_CSS
static final String PROPERTY_JS
void writeCssInclude(org.apache.sling.api.SlingHttpServletRequest request,
com.day.cq.wcm.api.designer.Design design,
PageRegion pageRegion,
Writer writer)
throws IOException
request - Sling Request objdesign - the Design to look up appropriate client libs from (usually currentDesign)pageRegion - PageRegion enumwriter - writer to output link and script tags toIOException - if an I/O error occursvoid writeJsInclude(org.apache.sling.api.SlingHttpServletRequest request,
com.day.cq.wcm.api.designer.Design design,
PageRegion pageRegion,
Writer writer)
throws IOException
request - Sling Request objdesign - the Design to look up appropriate client libs from (usually currentDesign)pageRegion - PageRegion enumwriter - writer to output link and script tags toIOException - if an I/O error occursvoid writeIncludes(org.apache.sling.api.SlingHttpServletRequest request,
com.day.cq.wcm.api.designer.Design design,
PageRegion pageRegion,
Writer writer)
throws IOException
request - Sling Request objdesign - the Design to look up appropriate client libs from (usually currentDesign)pageRegion - PageRegion enumwriter - writer to output link and script tags toIOException - if an I/O error occursString[] getCssLibraries(com.day.cq.wcm.api.designer.Design design, PageRegion pageRegion)
design - the Design to look up appropriate client libs from (usually currentDesign)pageRegion - PageRegion enumString[] getJsLibraries(com.day.cq.wcm.api.designer.Design design, PageRegion pageRegion)
design - the Design to look up appropriate client libs from (usually currentDesign)pageRegion - PageRegion enumString[] getLibraries(com.day.cq.wcm.api.designer.Design design, PageRegion pageRegion)
design - the Design to look up appropriate client libs from (usually currentDesign)pageRegion - PageRegion enumCopyright © 2013–2020 Adobe. All rights reserved.