|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
E
- The type of the child.public interface ChildList<E>
A modifiable list of children.
Method Summary | |
---|---|
int |
addChild(E child)
Add a child to the end of the list. |
void |
insertChild(int index,
E child)
Insert a child. |
int |
removeChild(Object child)
Remove a child. |
E |
removeChildAt(int index)
Remove a child by index. |
Method Detail |
---|
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 IndexOutOfBoundsException
index
- The index of the child to remove.
IndexOutOfBoundsException
- If there is no child at the index.int removeChild(Object child) throws IllegalStateException
child
- The child to be removed.
IllegalStateException
- If the child is not a child of this
list.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |