|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.trinidad.change.AddComponentDocumentChange
org.apache.myfaces.trinidad.change.SetFacetChildDocumentChange
public class SetFacetChildDocumentChange
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(String facetName,
DocumentFragment fragment)
Constructs an AddFacetDocumentChange with the specified child component mark up and the name of the facet. |
Method Summary | |
---|---|
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 |
Methods inherited from class org.apache.myfaces.trinidad.change.AddComponentDocumentChange |
---|
getComponentFragment, getImportedComponentFragment |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |