|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.util.TreeArray.RbEntry
protected static class TreeArray.RbEntry
Caller shall use AbstractList.Entry instead of RbEntry for better portability.
| Field Summary | |
|---|---|
protected boolean |
color
|
protected Object |
element
|
protected TreeArray.RbEntry |
left
|
protected int |
leftNum
|
protected boolean |
orphan
|
protected TreeArray.RbEntry |
parent
|
protected TreeArray.RbEntry |
right
|
| Constructor Summary | |
|---|---|
protected |
TreeArray.RbEntry(Object element)
|
| Method Summary | |
|---|---|
protected void |
clear()
Called by TreeArray.clear to do clear recursively. |
protected TreeArray.RbEntry |
firstRightAncestor()
Gets the first parent at the right of the specified entry. |
protected TreeArray.RbEntry |
firtLeftAncestor()
Gets the first ancestor at the left of the specified entry. |
Object |
getElement()
Override it if you want to something when an element is retrieved. |
boolean |
isOrphan()
Tests whether an entry is an orphan -- being removed from a list. |
protected TreeArray.RbEntry |
leftMost()
Gets the leftmost leaf of the specified subtree. |
ListX.Entry |
next()
|
protected TreeArray.RbEntry |
nextEntry()
|
ListX.Entry |
previous()
|
protected TreeArray.RbEntry |
previousEntry()
|
protected TreeArray.RbEntry |
rightMost()
Gets the rightmost leaf of the specified subtree. |
void |
setElement(Object element)
Override it if you want to do something when an element is set. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Object element
protected int leftNum
protected TreeArray.RbEntry left
protected TreeArray.RbEntry right
protected TreeArray.RbEntry parent
protected boolean color
protected boolean orphan
| Constructor Detail |
|---|
protected TreeArray.RbEntry(Object element)
| Method Detail |
|---|
public Object getElement()
getElement in interface ListX.Entrypublic void setElement(Object element)
setElement in interface ListX.Entrypublic final boolean isOrphan()
ListX.Entry
isOrphan in interface ListX.Entryprotected final TreeArray.RbEntry nextEntry()
public final ListX.Entry next()
next in interface ListX.Entryprotected final TreeArray.RbEntry previousEntry()
public final ListX.Entry previous()
previous in interface ListX.Entryprotected final TreeArray.RbEntry leftMost()
protected final TreeArray.RbEntry rightMost()
protected final TreeArray.RbEntry firtLeftAncestor()
protected final TreeArray.RbEntry firstRightAncestor()
protected void clear()
However, this.element is kept.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||