org.zkoss.idom
Class Document.ChildArray
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.AbstractSequentialList<E>
org.zkoss.util.NotableLinkedList<Item>
org.zkoss.idom.Document.ChildArray
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable<Item>, Collection<Item>, List<Item>
- Enclosing class:
- Document
protected class Document.ChildArray
- extends NotableLinkedList<Item>
- See Also:
- Serialized Form
|
Method Summary |
protected void |
onAdd(Item newElement,
Item followingElement)
Called each time an new element is about being added into the array. |
protected void |
onRemove(Item item)
Called each time an element is about being removed from the array. |
protected void |
onSet(Item newElement,
Item replaced)
Called each time an element is about being assigned into the array
and replace an existence one (by ListIterator.set). |
| Methods inherited from interface java.util.List |
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, remove, remove, removeAll, retainAll, set, subList, toArray, toArray |
Document.ChildArray
protected Document.ChildArray()
onAdd
protected void onAdd(Item newElement,
Item followingElement)
- Description copied from class:
NotableLinkedList
- Called 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:
onAdd in class NotableLinkedList<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
protected void onSet(Item newElement,
Item replaced)
- Description copied from class:
NotableLinkedList
- Called 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:
onSet in class NotableLinkedList<Item>
- Parameters:
newElement - the element to be addedreplaced - the element to be replaced
onRemove
protected void onRemove(Item item)
- Description copied from class:
NotableLinkedList
- Called each time an element is about being removed from the array.
Deriving classes usually put checking codes here.
And, throws exception if failure.
- Overrides:
onRemove in class NotableLinkedList<Item>
Copyright © 2014. All rights reserved.