| Package | Description |
|---|---|
| org.broadleafcommerce.common.web.processor | |
| org.broadleafcommerce.common.web.processor.attributes |
| Modifier and Type | Method and Description |
|---|---|
protected ResourceTagAttributes |
AbstractResourceProcessor.buildResourceTagAttributes(Map<String,String> tagAttributes)
Builds the tag attributes of the bundle tag
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
ResourceBundleProcessor.addCssToModel(ResourceTagAttributes attributes,
org.broadleafcommerce.presentation.model.BroadleafTemplateContext context,
org.broadleafcommerce.presentation.model.BroadleafTemplateModel model)
Adds the CSS to the model in a <link> tag
|
protected void |
ResourceBundleProcessor.addDependencyRestrictionToModel(List<String> files,
ResourceTagAttributes attributes,
org.broadleafcommerce.presentation.model.BroadleafTemplateContext context,
org.broadleafcommerce.presentation.model.BroadleafTemplateModel model)
Adds JavaScript to the model that will insert a given script tag when the dependency event is fired
|
protected void |
ResourceBundleProcessor.addElementToModel(ResourceTagAttributes attributes,
org.broadleafcommerce.presentation.model.BroadleafTemplateContext context,
org.broadleafcommerce.presentation.model.BroadleafTemplateModel model)
Adds the bundle to the model.
|
protected void |
ResourceBundleProcessor.addJavaScriptToModel(ResourceTagAttributes attributes,
org.broadleafcommerce.presentation.model.BroadleafTemplateContext context,
org.broadleafcommerce.presentation.model.BroadleafTemplateModel model)
Adds JavaScript to the model in a <script> tag
|
protected List<String> |
AbstractResourceProcessor.buildBundledFilesList(ResourceTagAttributes tagAttributes)
Gets all the files that should be included in the bundle
|
protected org.broadleafcommerce.presentation.model.BroadleafTemplateModel |
ResourceBundleProcessor.buildModelBundled(List<String> attributeFiles,
ResourceTagAttributes attributes,
org.broadleafcommerce.presentation.model.BroadleafTemplateContext context) |
protected org.broadleafcommerce.presentation.model.BroadleafTemplateModel |
ResourcePreloadProcessor.buildModelBundled(List<String> attributeFiles,
ResourceTagAttributes resourceTagAttributes,
org.broadleafcommerce.presentation.model.BroadleafTemplateContext context) |
protected abstract org.broadleafcommerce.presentation.model.BroadleafTemplateModel |
AbstractResourceProcessor.buildModelBundled(List<String> attributeFiles,
ResourceTagAttributes attributes,
org.broadleafcommerce.presentation.model.BroadleafTemplateContext context)
Builds the model that contains the bundled resources the tag should be replaced with
|
protected org.broadleafcommerce.presentation.model.BroadleafTemplateModel |
ResourceBundleProcessor.buildModelUnbundled(List<String> attributeFiles,
ResourceTagAttributes attributes,
org.broadleafcommerce.presentation.model.BroadleafTemplateContext context) |
protected org.broadleafcommerce.presentation.model.BroadleafTemplateModel |
ResourcePreloadProcessor.buildModelUnbundled(List<String> attributeFiles,
ResourceTagAttributes resourceTagAttributes,
org.broadleafcommerce.presentation.model.BroadleafTemplateContext context) |
protected abstract org.broadleafcommerce.presentation.model.BroadleafTemplateModel |
AbstractResourceProcessor.buildModelUnbundled(List<String> attributeFiles,
ResourceTagAttributes attributes,
org.broadleafcommerce.presentation.model.BroadleafTemplateContext context)
Builds the model that contains the unbundled resources the tag should be replaced with
|
protected org.broadleafcommerce.presentation.model.BroadleafTemplateElement |
ResourceBundleProcessor.buildUnbundledSyncCompletedEventElement(ResourceTagAttributes attributes,
org.broadleafcommerce.presentation.model.BroadleafTemplateContext context)
Builds a script element that fires the bundle complete event only when supported
|
protected String |
AbstractResourceProcessor.getBundleAppendText(ResourceTagAttributes attributes)
Gets the bundle append text, text that will be appended to the end of a bundle
|
protected String |
AbstractResourceProcessor.getBundleCompleteEventJavaScript(ResourceTagAttributes attributes)
Gets the JavaScript that fires an event when a bundle is completed
|
protected String |
AbstractResourceProcessor.getBundlePath(ResourceTagAttributes attributes,
List<String> files)
Gets the bundle path.
|
protected List<org.broadleafcommerce.presentation.model.BroadleafTemplateElement> |
ResourceBundleProcessor.getDeferredCssElements(ResourceTagAttributes attributes,
org.broadleafcommerce.presentation.model.BroadleafTemplateContext context)
Gets a list of elements to add to the model for deferred CSS
|
protected String |
AbstractResourceProcessor.getFullUnbundledFileName(String fileName,
ResourceTagAttributes resourceTagAttributes,
org.broadleafcommerce.presentation.model.BroadleafTemplateContext context)
Gets the full path of an unbundled file.
|
protected Map<String,String> |
ResourceBundleProcessor.getNormalCssAttributes(ResourceTagAttributes tagAttributes)
Builds a map of normal (non-deferred) attributes to put on a CSS <link> tag
|
protected Map<String,String> |
ResourceBundleProcessor.getScriptAttributes(ResourceTagAttributes tagAttributes)
Gets the attributes to put on the <script> tag
|
protected List<String> |
AbstractResourceProcessor.postProcessUnbundledFileList(List<String> attributeFiles,
ResourceTagAttributes tagAttributes,
org.broadleafcommerce.presentation.model.BroadleafTemplateContext context)
Performs post processing on an unbundled file list to either grab the file list stored on the request (see
ResourcesRequest) or use the files from the tag attributes and save them so they can be used
again later without the files attribute. |
protected boolean |
ResourceBundleProcessor.useAsyncJavaScript(ResourceTagAttributes attributes)
Tells if the JavaScript added to the page should be asynchronous
|
protected void |
ResourceBundleProcessor.validateTagAttributes(ResourceTagAttributes attributes) |
protected void |
AbstractResourceProcessor.validateTagAttributes(ResourceTagAttributes resourceTagAttributes)
Validates the requested tag attributes
|
| Modifier and Type | Method and Description |
|---|---|
ResourceTagAttributes |
ResourceTagAttributes.async(boolean async) |
ResourceTagAttributes |
ResourceTagAttributes.bundleCompletedEvent(String bundleCompletedEvent) |
ResourceTagAttributes |
ResourceTagAttributes.bundleDependencyEvent(String bundleDependencyEvent) |
ResourceTagAttributes |
ResourceTagAttributes.defer(boolean defer) |
ResourceTagAttributes |
ResourceTagAttributes.files(String files) |
ResourceTagAttributes |
ResourceTagAttributes.includeAsyncDeferUnbundled(boolean includeAsyncDeferUnbundled) |
ResourceTagAttributes |
ResourceTagAttributes.mappingPrefix(String mappingPrefix) |
ResourceTagAttributes |
ResourceTagAttributes.name(String name) |
ResourceTagAttributes |
ResourceTagAttributes.src(String src) |
| Constructor and Description |
|---|
ResourceTagAttributes(ResourceTagAttributes toCopy)
Copy constructor for a
ResourceTagAttributes. |
Copyright © 2025. All rights reserved.