|
||||||||||
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 java.lang.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(java.lang.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. |
java.lang.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 rihtmost leaf of the specified subtree. |
void |
setElement(java.lang.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 java.lang.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(java.lang.Object element)
Method Detail |
---|
public java.lang.Object getElement()
getElement
in interface ListX.Entry
public void setElement(java.lang.Object element)
setElement
in interface ListX.Entry
public final boolean isOrphan()
ListX.Entry
isOrphan
in interface ListX.Entry
protected final TreeArray.RbEntry nextEntry()
public final ListX.Entry next()
next
in interface ListX.Entry
protected final TreeArray.RbEntry previousEntry()
public final ListX.Entry previous()
previous
in interface ListX.Entry
protected 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 |