public class DependencyDeferredContentSourceModelElement
extends org.springframework.extensions.surf.extensibility.impl.DefaultContentModelElement
implements org.springframework.extensions.surf.extensibility.DeferredContentSourceModelElement
This DeferredContentSourceModelElement defines the common behaviour for adding CSS and JavaScript dependency requests
to the associated DeferredContentTargetModelElement.
| Constructor and Description |
|---|
DependencyDeferredContentSourceModelElement(String id,
String directiveName,
String dependency,
String group,
boolean aggregate,
org.springframework.extensions.surf.extensibility.DeferredContentTargetModelElement targetElement) |
| Modifier and Type | Method and Description |
|---|---|
void |
enterEditMode(String mode)
Update the associated
DeferredContentTargetModelElement that edit mode has been entered. |
void |
exitEditMode()
Update the associated
DeferredContentTargetModelElement that edit mode has been
exited. |
String |
getDependency() |
String |
getGroup() |
org.springframework.extensions.surf.extensibility.DeferredContentTargetModelElement |
getTargetElement()
Returns the the
DeferredContentTargetModelElement associated with this DeferredContentSourceModelElement |
boolean |
hasBeenRemoved()
Returns the value of the
removed attribute. |
boolean |
isAggregate() |
void |
markAsRemoved()
Updates the
removed attribute to indicate that the element is no longer part of the model it
was originally added to. |
String |
toString() |
equals, flushContent, getNextContentBufferElement, getType, hashCode, parseContent, validateContentgetDirectiveName, getIdclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic void markAsRemoved()
Updates the removed attribute to indicate that the element is no longer part of the model it
was originally added to. By default there is no other cleanup action necessary.
markAsRemoved in interface org.springframework.extensions.surf.extensibility.DeferredContentSourceModelElementpublic boolean hasBeenRemoved()
Returns the value of the removed attribute.
hasBeenRemoved in interface org.springframework.extensions.surf.extensibility.DeferredContentSourceModelElementtrue if the element has been removed and false otherwise.public String getDependency()
DeferredContentSourceModelElementpublic String getGroup()
public boolean isAggregate()
public org.springframework.extensions.surf.extensibility.DeferredContentTargetModelElement getTargetElement()
Returns the the DeferredContentTargetModelElement associated with this DeferredContentSourceModelElement
public void enterEditMode(String mode)
Update the associated DeferredContentTargetModelElement that edit mode has been entered. If the
edit action is either to remove or replace the element then the element should be marked as having been
removed.
enterEditMode in interface org.springframework.extensions.surf.extensibility.DeferredContentSourceModelElementpublic void exitEditMode()
Update the associated DeferredContentTargetModelElement that edit mode has been
exited.
exitEditMode in interface org.springframework.extensions.surf.extensibility.DeferredContentSourceModelElementpublic String toString()
toString in class org.springframework.extensions.surf.extensibility.impl.ModelElementImplCopyright © 2005–2016 Alfresco Software. All rights reserved.