Package org.zkoss.idom.impl
Class AbstractGroup.ChildArray
java.lang.Object
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<Item>,Collection<Item>,List<Item>
- Enclosing class:
- AbstractGroup
The array to hold children.
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCalled each time an new element is about being added into the array.protected voidCalled each time an element is about being removed from the array.protected voidCalled each time an element is about being assigned into the array and replace an existence one (by ListIterator.set).Methods inherited from class org.zkoss.util.NotableLinkedList
listIterator, sizeMethods inherited from class java.util.AbstractSequentialList
add, addAll, get, iterator, remove, setMethods inherited from class java.util.AbstractList
add, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, removeRange, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Constructor Details
-
ChildArray
protected ChildArray()
-
-
Method Details
-
onAdd
Description copied from class:NotableLinkedListCalled each time an new element is about being added into the array.Deriving classes usually put checking codes here. And, throws exception if failure and nothing will be affected.
- Overrides:
onAddin classNotableLinkedList<Item>- Parameters:
newElement- the element to be addedfollowingElement- the element that will 'follow' the new element. In other words, newElement will be inserted before followingElement. If null, it means newElement is appended at the end
-
onSet
Description copied from class:NotableLinkedListCalled each time an element is about being assigned into the array and replace an existence one (by ListIterator.set).Deriving classes usually put checking codes here. And, throws exception if failure and nothing will be affected.
- Overrides:
onSetin classNotableLinkedList<Item>- Parameters:
newElement- the element to be addedreplaced- the element to be replaced
-
onRemove
Description copied from class:NotableLinkedListCalled each time an element is about being removed from the array. Deriving classes usually put checking codes here. And, throws exception if failure.- Overrides:
onRemovein classNotableLinkedList<Item>
-