|
||||||||||
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.ReorderChildrenComponentChange
public class ReorderChildrenComponentChange
Change specialization for re-ordering of children. While applying this Change, the specified order of children is restored.
Constructor Summary | |
---|---|
ReorderChildrenComponentChange(List<String> childIds)
Constructs a ReorderChange with the given List of identifiers for children. |
|
ReorderChildrenComponentChange(List<String> childIds,
String identifier)
Constructs a ReorderChange with the given List of identifiers for children. |
Method Summary | |
---|---|
void |
changeComponent(javax.faces.component.UIComponent uiComponent)
Apply this change to the specied component |
void |
changeDocument(Node componentNode)
Apply this change to the specied root DOM Node of the component |
List<String> |
getChildIds()
Returns an unmodifiable List of the identifiers for the children. |
boolean |
getForcesDocumentReload()
Returns true if adding the DocumentChange should force the JSP Document to reload |
String |
getIdentifier()
Returns the identifier type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReorderChildrenComponentChange(List<String> childIds)
childIds
- An in-order collection (List) of Ids (as java.lang.String)
of child components.
This List implementation should be of type java.io.Serializable in
order to be persisted.
If no identifier was passed, it would be assumed that the list
consists of the Ids.
IllegalArgumentException
- if supplied childIds were to be null.public ReorderChildrenComponentChange(List<String> childIds, String identifier)
childIds
- An in-order collection (List) of Ids (as java.lang.String)
of child components.
This List implementation should be of type java.io.Serializable in
order to be persisted.identifier
- Determines the type of identifiers which the List consists of.
IllegalArgumentException
- if supplied childIds were to be null or supplied
identifier was to be null or emtpy string.Method Detail |
---|
public List<String> getChildIds()
public final String getIdentifier()
public void changeComponent(javax.faces.component.UIComponent uiComponent)
changeComponent
in class ComponentChange
uiComponent
- the UIComponent to apply the change topublic void changeDocument(Node componentNode)
changeDocument
in interface DocumentChange
componentNode
- DOM node of the component to apply the change topublic boolean getForcesDocumentReload()
getForcesDocumentReload
in interface DocumentChange
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |