|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MutableUINode
MutableUINode extends UINode to add mutability. Most WebBeans will inherit from this class, but Renderers only see that immutable UINode interface.
The indexed children manipulation methods--addIndexedChild
,
removeIndexedChild
, and clearIndexedChildren
.
follow the same semantics as the indexed methods from the Java Collections
List and Collection classes respectively.
Method Summary | |
---|---|
void |
addIndexedChild(int childIndex,
UINode child)
Inserts an indexed child to the node. |
void |
addIndexedChild(UINode child)
Inserts an indexed child to the node, placing after all other nodes. |
void |
clearIndexedChildren()
Removes all of the indexed children. |
UINode |
removeIndexedChild(int childIndex)
Removes an indexed child from the node. |
void |
replaceIndexedChild(int childIndex,
UINode child)
Replaces a single child. |
void |
setAttributeValue(AttributeKey attrKey,
java.lang.Object value)
Sets an attribute value of the node. |
void |
setID(java.lang.String id)
Sets the page-wide unique client ID of this node. |
void |
setNamedChild(java.lang.String childName,
UINode namedChild)
Sets a named child on the node. |
Methods inherited from interface org.apache.myfaces.trinidadinternal.ui.UINode |
---|
getAttributeNames, getAttributeValue, getChildNames, getIndexedChild, getIndexedChildCount, getLocalName, getNamedChild, getNamespaceURI, getNodeRole, getRawAttributeValue, getUIComponent, render, render |
Method Detail |
---|
void addIndexedChild(int childIndex, UINode child)
Unlike many other APIs, adding a child does not remove it from any other parent nodes. In fact, the same child UINode instance is allowed to appear in multiple different indices of the same parent UINode.
childIndex
- the zero-based index to add the child at.child
- the new child node
removeIndexedChild(int)
,
clearIndexedChildren()
,
List.add(E)
void addIndexedChild(UINode child)
Unlike many other APIs, adding a child does not remove it from any other parent nodes. In fact, the same child UINode instance is allowed to appear in multiple different indices of the same parent UINode.
child
- the new child node
removeIndexedChild(int)
,
clearIndexedChildren()
,
List.add(E)
UINode removeIndexedChild(int childIndex)
childIndex
- the zero-based index of the child to remove
clearIndexedChildren()
,
List.remove(java.lang.Object)
void clearIndexedChildren()
Although this method could be implemented in terms of
removeIndexedChild
, it is present on this interface in
order to allow for more efficient implementations.
removeIndexedChild(int)
,
Collection.clear()
void replaceIndexedChild(int childIndex, UINode child)
Although this method could be implemented in terms of
addIndexedChild
and removeIndexedChild
,
it is present on this interface in
order to allow for more efficient implementations.
childIndex
- the zero-based index to add the child at.child
- the new child node
removeIndexedChild(int)
void setNamedChild(java.lang.String childName, UINode namedChild)
childName
- the name of the childnamedChild
- the child; passing null will remove any existing
UINode with that name.void setAttributeValue(AttributeKey attrKey, java.lang.Object value)
name
- the name of the attributevalue
- the new value; passing null will remove any
existing attribute with that name.void setID(java.lang.String id)
This property is typically only needed when writing client-side JavaScript.
This method is only present on this interface for backwards compatibility
and will be removed from this interface in a future version of UIX Components
and moved to org.apache.myfaces.trinidadinternal.ui.beans.BaseWebBean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |