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 |
sortChildren(Comparator c)
|
int getChildCnt()
Block getChild(int idx)
Block removeChild(int idx)
UnsupportedOperationException
- if the implementation is not mutablevoid addChild(Block b)
UnsupportedOperationException
- if the implementation is not mutablevoid sortChildren(Comparator c)
UnsupportedOperationException
- if the implementation is not mutablevoid removeAllChildren()