Modifier and Type | Method and Description |
---|---|
void |
addChild(Block b) |
Block |
getChild(int idx)
Returns the child and the given index.
|
int |
getChildCnt()
Returns the number of children held by this BlockParent.
|
void |
removeAllChildren() |
Block |
removeChild(int idx)
Removes and returns the child at the given index.
|
void |
replaceChild(int idx,
Block b)
Replaces the child at the given index with the provided
Block . |
void |
sortChildren(java.util.Comparator c)
|
int getChildCnt()
Block getChild(int idx)
Block removeChild(int idx)
java.lang.UnsupportedOperationException
- if the implementation is not mutablevoid replaceChild(int idx, Block b)
Block
.void addChild(Block b)
java.lang.UnsupportedOperationException
- if the implementation is not mutablevoid sortChildren(java.util.Comparator c)
java.lang.UnsupportedOperationException
- if the implementation is not mutablevoid removeAllChildren()