|
||||||||||
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.AddChildDocumentChange
public class AddChildDocumentChange
Change specialization for adding a child component using document mark up. While applying this Change, the child component is created and added to the document.
Constructor Summary | |
---|---|
AddChildDocumentChange(org.w3c.dom.DocumentFragment componentFragment)
Constructs an AddChildDocumentChange with the specified child component mark up. |
|
AddChildDocumentChange(java.lang.String insertBeforeId,
org.w3c.dom.DocumentFragment componentFragment)
Constructs an AddChildDocumentChange with the specified child component mark up and the identifier of the neighbour. |
Method Summary | |
---|---|
void |
changeDocument(org.w3c.dom.Node componentNode)
Given the DOM Node representing a Component, apply any necessary DOM changes. |
java.lang.String |
getInsertBeforeId()
Returns the identifier of the sibling before which this new child needs to be inserted. |
Methods inherited from class org.apache.myfaces.trinidad.change.AddComponentDocumentChange |
---|
getComponentFragment, getForcesDocumentReload, getImportedComponentFragment |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AddChildDocumentChange(org.w3c.dom.DocumentFragment componentFragment)
componentFragment
- DOM mark up for child component to be appended.
java.lang.IllegalArgumentException
- if componentFragment is null
public AddChildDocumentChange(java.lang.String insertBeforeId, org.w3c.dom.DocumentFragment componentFragment)
insertBeforeId
- The identifier of the sibling before which this new
child is to be inserted or null
to append the childcomponentFragment
- DOM mark up for child component to be inserted.
java.lang.IllegalArgumentException
- if componentFragment is null
Method Detail |
---|
public java.lang.String getInsertBeforeId()
public void changeDocument(org.w3c.dom.Node componentNode)
componentNode
- DOM node of the component to apply the change to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |