org.zkoss.idom.impl
Class AbstractGroup.ChildArray

java.lang.Object
  extended by java.util.AbstractCollection
      extended by java.util.AbstractList
          extended by org.zkoss.util.TreeArray
              extended by org.zkoss.util.CheckableTreeArray
                  extended by org.zkoss.idom.impl.AbstractGroup.ChildArray
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, ListX
Enclosing class:
AbstractGroup

protected class AbstractGroup.ChildArray
extends CheckableTreeArray

The array to hold children.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.zkoss.util.CheckableTreeArray
CheckableTreeArray.CkEntry
 
Nested classes/interfaces inherited from class org.zkoss.util.TreeArray
TreeArray.RbEntry
 
Nested classes/interfaces inherited from interface org.zkoss.util.ListX
ListX.Entry
 
Field Summary
 
Fields inherited from class org.zkoss.util.TreeArray
_hashCode, _root, _size, BLACK, RED
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
protected AbstractGroup.ChildArray()
           
 
Method Summary
protected  void onAdd(java.lang.Object newElement, java.lang.Object followingElement)
          Called each time an new element is about being added into the array.
protected  void onRemove(java.lang.Object item)
          Called each time an element is about being removed from the array.
protected  void onSet(java.lang.Object newElement, java.lang.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.CheckableTreeArray
clear, delete, insert, newEntry
 
Methods inherited from class org.zkoss.util.TreeArray
add, addAllByOrder, addAllByOrder, addByOrder, addByOrder, addEntry, addEntry, addEntry, checkNotOrphan, checkRange, checkRangePlus, clone, decSize, delete, entryIterator, entryIterator, first, get, getByOrder, getByOrder, getEntry, getRbEntry, hashCode, incSize, indexOfEntry, indexOfEntry, indexOutOfBounds, insert, iterator, listIterator, remove, removeByOrder, removeByOrder, removeEntry, removeEntry, search, search, set, size, sort, sort
 
Methods inherited from class java.util.AbstractList
add, addAll, equals, 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
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 

Constructor Detail

AbstractGroup.ChildArray

protected AbstractGroup.ChildArray()
Method Detail

onAdd

protected void onAdd(java.lang.Object newElement,
                     java.lang.Object followingElement)
Description copied from class: CheckableTreeArray
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 CheckableTreeArray
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(java.lang.Object newElement,
                     java.lang.Object replaced)
Description copied from class: CheckableTreeArray
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 CheckableTreeArray
Parameters:
newElement - the element to be added
replaced - the element to be replaced

onRemove

protected void onRemove(java.lang.Object item)
Description copied from class: CheckableTreeArray
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 CheckableTreeArray


Copyright © 2005-2009 Potix Corporation. All Rights Reserved. SourceForge.net Logo