public class AddChildComponentChange extends AddComponentChange
Constructor and Description |
---|
AddChildComponentChange(String insertBeforeId,
javax.faces.component.UIComponent childComponent)
Constructs an AddChildChange with the specified child component and the
the identifier of the neighbour.
|
AddChildComponentChange(javax.faces.component.UIComponent childComponent)
Constructs an AddChildChange that appends the specified child component.
|
Modifier and Type | Method and Description |
---|---|
void |
changeComponent(javax.faces.component.UIComponent uiComponent)
Apply this change to the specied component
|
String |
getInsertBeforeId()
Returns the identifier of the sibling before which this new child needs to
be inserted.
|
getComponent
public AddChildComponentChange(javax.faces.component.UIComponent childComponent)
childComponent
- The child component that is to be appended.IllegalArgumentException
- if specified childComponent is null.public AddChildComponentChange(String insertBeforeId, javax.faces.component.UIComponent childComponent)
null< the child is
appended to the end of the list of children.
insertBeforeId
- The identifier of the sibling before which this new
child is to be inserted.childComponent
- The child component that is to be added.IllegalArgumentException
- if specified childComponent is nullpublic String getInsertBeforeId()
public void changeComponent(javax.faces.component.UIComponent uiComponent)
changeComponent
in class ComponentChange
uiComponent
- the UIComponent to apply the change toCopyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.