org.zkoss.idom
Class Element.AttrArray

java.lang.Object
  extended by java.util.AbstractCollection
      extended by java.util.AbstractList
          extended by java.util.AbstractSequentialList
              extended by org.zkoss.util.NotableLinkedList
                  extended by org.zkoss.idom.Element.AttrArray
All Implemented Interfaces:
Serializable, Cloneable, Iterable, Collection, List
Enclosing class:
Element

protected class Element.AttrArray
extends NotableLinkedList

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
protected Element.AttrArray()
           
 
Method Summary
protected  void onAdd(Object newElement, Object followingElement)
          Called each time an new element is about being added into the array.
protected  void onRemove(Object item)
          Called each time an element is about being removed from the array.
protected  void onSet(Object newElement, Object replaced)
          Called 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, size
 
Methods inherited from class java.util.AbstractSequentialList
add, addAll, get, iterator, remove, set
 
Methods inherited from class java.util.AbstractList
add, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, removeRange, subList
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
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
 

Constructor Detail

Element.AttrArray

protected Element.AttrArray()
Method Detail

onAdd

protected void onAdd(Object newElement,
                     Object 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
Parameters:
newElement - the element to be added
followingElement - 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(Object newElement,
                     Object 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
Parameters:
newElement - the element to be added
replaced - the element to be replaced

onRemove

protected void onRemove(Object 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


Copyright © 2012. All Rights Reserved.