public class SetFacetChildDocumentChange extends AddComponentDocumentChange
Constructor and Description |
---|
SetFacetChildDocumentChange(String facetName,
DocumentFragment fragment)
Constructs an AddFacetDocumentChange with the specified child component mark up and
the name of the facet.
|
Modifier and Type | Method and Description |
---|---|
void |
changeDocument(Node componentNode)
Given the DOM Node representing a Component, apply any necessary
DOM changes.
|
String |
getFacetName()
Returns the identifier of the sibling before which this new child needs to
be inserted.
|
boolean |
getForcesDocumentReload()
Returns true if adding the DocumentChange should force the JSP Document
to reload
|
getComponentFragment, getImportedComponentFragment
public SetFacetChildDocumentChange(String facetName, DocumentFragment fragment)
facetName
- Name of facet to create the child component infragment
- DOM mark up for child component to be inserted.IllegalArgumentException
- if facetName or componentFragment is
null
public String getFacetName()
public void changeDocument(Node componentNode)
componentNode
- DOM node of the component to apply the change topublic boolean getForcesDocumentReload()
getForcesDocumentReload
in interface DocumentChange
getForcesDocumentReload
in class AddComponentDocumentChange
Copyright © 2001-2016 The Apache Software Foundation. All Rights Reserved.