|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.trinidad.change.ComponentChange
org.apache.myfaces.trinidad.change.AddComponentChange
org.apache.myfaces.trinidad.change.AddChildComponentChange
public class AddChildComponentChange
Change specialization for adding a child component. While applying this Change, the child component is re-created and added to the list of children. If a child component with an id same as the new child being added is already present in the parent container, the new child is not added.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.myfaces.trinidad.change.AddComponentChange |
---|
getComponent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.
- Parameters:
insertBeforeId
- The identifier of the sibling before which this new
child is to be inserted.childComponent
- The child component that is to be added.
- Throws:
IllegalArgumentException
- if specified childComponent is null
Method Detail |
---|
public String getInsertBeforeId()
public void changeComponent(javax.faces.component.UIComponent uiComponent)
changeComponent
in class ComponentChange
uiComponent
- the UIComponent to apply the change to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |