Interface DeferredContentTargetModelElement
- All Superinterfaces:
ContentModelElement,ExtensibilityModelElement
This is a ContentModelElement that does not produce any content when it is first rendered by instead
relies on subsequently rendered DeferredContentSourceModelElement instances to populate it with data
before its final content is flushed. This has been provided to act as a placeholder for CSS and JavaScript
dependency requests that may be made by WebScripts rendered later on in the model.
- Author:
- David Draper
-
Field Summary
Fields inherited from interface org.springframework.extensions.surf.extensibility.ContentModelElement
TYPE -
Method Summary
Modifier and TypeMethodDescriptionvoidenterEditMode(String mode, DeferredContentSourceModelElement sourceElement) Moves theDeferredContentTargetModelElementinto edit mode so that subsequent requests are processed appropriately.voidMoves theDeferredContentTargetModelElementout of edit mode so that normal processing is resumed.voidregisterDeferredSourceElement(DeferredContentSourceModelElement sourceElement) This method should be called by aDeferredContentSourceModelElementto register itself with its target so that when theDeferredContentTargetModelElementflushes its content it can reach into theExtensibilityModelto retrieve the content it needs to output.Methods inherited from interface org.springframework.extensions.surf.extensibility.ContentModelElement
flushContent, getNextContentBufferElementMethods inherited from interface org.springframework.extensions.surf.extensibility.ExtensibilityModelElement
getDirectiveName, getId, getType
-
Method Details
-
registerDeferredSourceElement
This method should be called by a
DeferredContentSourceModelElementto register itself with its target so that when theDeferredContentTargetModelElementflushes its content it can reach into theExtensibilityModelto retrieve the content it needs to output.- Parameters:
sourceElement- TheDeferredContentSourceModelElementcalling the method.
-
enterEditMode
Moves the
DeferredContentTargetModelElementinto edit mode so that subsequent requests are processed appropriately. This allows the insertion of content at the correct point by an extension.- Parameters:
mode- The edit mode that has been started, e.g. "remove", "replace", "after", etc.sourceElement- THeDeferredContentSourceModelElementthat is being edited.
-
exitEditMode
void exitEditMode()Moves the
DeferredContentTargetModelElementout of edit mode so that normal processing is resumed.
-