E
- The type of the child.public interface ChildList<E>
Modifier and Type | Method and Description |
---|---|
int |
addChild(E child)
Add a child to the end of the list.
|
void |
insertChild(int index,
E child)
Insert a child.
|
int |
removeChild(java.lang.Object child)
Remove a child.
|
E |
removeChildAt(int index)
Remove a child by index.
|
void insertChild(int index, E child)
index
- The 0 based index of the insert.child
- The child. Must not be null.int addChild(E child)
child
- The child. Must not be null.E removeChildAt(int index) throws java.lang.IndexOutOfBoundsException
index
- The index of the child to remove.java.lang.IndexOutOfBoundsException
- If there is no child at the index.int removeChild(java.lang.Object child) throws java.lang.IllegalStateException
child
- The child to be removed.java.lang.IllegalStateException
- If the child is not a child of this
list.