org.zkoss.idom
Class Element.AttrArray
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.AbstractSequentialList<E>
org.zkoss.util.NotableLinkedList<Attribute>
org.zkoss.idom.Element.AttrArray
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable<Attribute>, Collection<Attribute>, List<Attribute>
- Enclosing class:
- Element
protected class Element.AttrArray
- extends NotableLinkedList<Attribute>
- See Also:
- Serialized Form
|
Method Summary |
protected void |
onAdd(Attribute newElement,
Attribute followingElement)
Called each time an new element is about being added into the array. |
protected void |
onRemove(Attribute item)
Called each time an element is about being removed from the array. |
protected void |
onSet(Attribute newElement,
Attribute 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 |
Element.AttrArray
protected Element.AttrArray()
onAdd
protected void onAdd(Attribute newElement,
Attribute 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<Attribute>
- Parameters:
newElement - the element to be addedfollowingElement - the elment 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(Attribute newElement,
Attribute 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<Attribute>
- Parameters:
newElement - the element to be addedreplaced - the element to be replaced
onRemove
protected void onRemove(Attribute 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<Attribute>
Copyright © 2011. All Rights Reserved.