public interface DeferredContentSourceModelElement extends ContentModelElement
This is a ContentModelElement that doesn't place any content at the location where it is placed in
the ExtensibilityModel. Instead it is adds content to a previously rendered DeferredContentTargetModelElement
that it is associated with. This has been provided to allow WebScripts to add new CSS and JavaScript dependency requests
into the <HEAD> element of the HTML page after it has already been rendered.
TYPE| Modifier and Type | Method and Description |
|---|---|
void |
enterEditMode(String mode)
Indicates the previously generated deferred content is being edited by an extension.
|
void |
exitEditMode()
Indicates that the previously generated deferred content has finished being edited by an
extension.
|
boolean |
hasBeenRemoved()
Indicates whether or not the element has been removed from the model or not.
|
void |
markAsRemoved()
Allow elements to be marked when they're removed.
|
flushContent, getNextContentBufferElementgetDirectiveName, getId, getTypevoid enterEditMode(String mode)
Indicates the previously generated deferred content is being edited by an extension. This
calls the associated DeferredContentTargetModelElement to indicate that editing is occurring
to prepare it for handling subsequent requests.
mode - The mode of editing being started, e.g. "replace", "remove", "after", etc.void exitEditMode()
Indicates that the previously generated deferred content has finished being edited by an extension.
void markAsRemoved()
Allow elements to be marked when they're removed. This is done because even if an element is removed from the model it may still be referenced elsewhere. This makes it possible to check that the element is still part of the model when the model is not available.
boolean hasBeenRemoved()
Indicates whether or not the element has been removed from the model or not.
true if the element is no longer in the model and false otherwise.Copyright © 2005–2021 Alfresco Software. All rights reserved.