org.apache.myfaces.trinidad.change
Class AddComponentDocumentChange
java.lang.Object
org.apache.myfaces.trinidad.change.AddComponentDocumentChange
- All Implemented Interfaces:
- DocumentChange
- Direct Known Subclasses:
- AddChildDocumentChange, SetFacetChildDocumentChange
public abstract class AddComponentDocumentChange
- extends Object
- implements DocumentChange
Base class for specialized DocumentChanges that when applied will add a component
instance to the component tree.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AddComponentDocumentChange
protected AddComponentDocumentChange(DocumentFragment fragment)
getForcesDocumentReload
public boolean getForcesDocumentReload()
- Returns true if adding the DocumentChange should force the JSP Document
to reload
- Specified by:
getForcesDocumentReload
in interface DocumentChange
getComponentFragment
protected final DocumentFragment getComponentFragment()
- Returns the component that is to be added either as a child or a facet
while applying this Change. Returns null if the component cannot be
successfully re-constructed.
getImportedComponentFragment
protected final DocumentFragment getImportedComponentFragment(Node targetNode)
- Given the target Node, return the DocumentFragment, imported into the
target Document
- Parameters:
targetNode
-
Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.