Skip navigation links
org.apache.myfaces.trinidad.change
Class SetFacetChildDocumentChange
java.lang.Object
org.apache.myfaces.trinidad.change.AddComponentDocumentChange
org.apache.myfaces.trinidad.change.SetFacetChildDocumentChange
- All Implemented Interfaces:
- DocumentChange
-
public class SetFacetChildDocumentChange
- extends AddComponentDocumentChange
Change specialization for adding a child component to a facet using document mark up. While applying this Change, the child component is created and added to the document. If the facet doesn't exist, it will be created. If the facet does exist, all of its content will be removed and the new content added.
| Constructor Summary |
SetFacetChildDocumentChange(java.lang.String facetName, org.w3c.dom.DocumentFragment fragment)
Constructs an AddFacetDocumentChange with the specified child component mark up and the name of the facet. |
| Method Summary |
void |
changeDocument(org.w3c.dom.Node componentNode)
Given the DOM Node representing a Component, apply any necessary DOM changes. |
java.lang.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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SetFacetChildDocumentChange
public SetFacetChildDocumentChange(java.lang.String facetName,
org.w3c.dom.DocumentFragment fragment)
- Constructs an AddFacetDocumentChange with the specified child component mark up and the name of the facet.
- Parameters:
facetName - Name of facet to create the child component in
fragment - DOM mark up for child component to be inserted.
- Throws:
java.lang.IllegalArgumentException - if facetName or componentFragment is null
getFacetName
public java.lang.String getFacetName()
- Returns the identifier of the sibling before which this new child needs to be inserted.
changeDocument
public void changeDocument(org.w3c.dom.Node componentNode)
- Given the DOM Node representing a Component, apply any necessary DOM changes. While applying this Change, the child component is created and added to the document. If the facet doesn't exist, it will be created. If the facet does exist, all of its content will be removed and the new content added.
-
- Parameters:
componentNode - DOM node of the component to apply the change to
getForcesDocumentReload
public boolean getForcesDocumentReload()
- Returns true if adding the DocumentChange should force the JSP Document to reload
-
- Specified by:
getForcesDocumentReload in interface DocumentChange
- Overrides:
getForcesDocumentReload in class AddComponentDocumentChange
Skip navigation links
Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.