|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractList
org.zkoss.util.TreeArray
org.zkoss.util.CheckableTreeArray
public abstract class CheckableTreeArray
| Nested Class Summary | |
|---|---|
protected class |
CheckableTreeArray.CkEntry
Deprecated. |
| 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 |
CheckableTreeArray()
Deprecated. |
protected |
CheckableTreeArray(Collection c)
Deprecated. |
| Method Summary | |
|---|---|
void |
clear()
Deprecated. Clears the whole list. |
protected void |
delete(TreeArray.RbEntry p)
Deprecated. All remove methods are done thru this method. |
protected TreeArray.RbEntry |
insert(TreeArray.RbEntry insertBefore,
TreeArray.RbEntry p)
Deprecated. All add methods are done thru this method. |
protected TreeArray.RbEntry |
newEntry(Object element)
Deprecated. Creates an instance of RbEntry. |
protected void |
onAdd(Object newElement,
Object followingElement)
Deprecated. Called each time an new element is about being added into the array. |
protected void |
onRemove(Object element)
Deprecated. Called each time an element is about being removed from the array. |
protected void |
onSet(Object newElement,
Object replaced)
Deprecated. 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.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 |
|---|
protected CheckableTreeArray()
protected CheckableTreeArray(Collection c)
| Method Detail |
|---|
protected void onAdd(Object newElement,
Object followingElement)
Deriving classes usually put checking codes here. And, throws exception if failure and nothing will be affected.
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
protected void onSet(Object newElement,
Object replaced)
Deriving classes usually put checking codes here. And, throws exception if failure and nothing will be affected.
newElement - the element to be addedreplaced - the element to be replacedprotected void onRemove(Object element)
protected TreeArray.RbEntry newEntry(Object element)
TreeArray
newEntry in class TreeArray
protected TreeArray.RbEntry insert(TreeArray.RbEntry insertBefore,
TreeArray.RbEntry p)
TreeArrayNote: p is inserted before insertBefore.
insert in class TreeArrayprotected void delete(TreeArray.RbEntry p)
TreeArray
delete in class TreeArraypublic void clear()
TreeArrayNote clear actually invokes RbEntry.clear to do the real cleanup. Deriving classes might override RbEntry.clear.
clear in interface Collectionclear in interface Listclear in class TreeArray
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||