|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.emf.ecp.common.spi.cachetree.CachedTreeNode<T>
T - the type of the value stored by this nodepublic abstract class CachedTreeNode<T>
A node within an AbstractCachedTree.
| Constructor Summary | |
|---|---|
CachedTreeNode(T initialValue)
Constructor. |
|
| Method Summary | |
|---|---|
T |
getChildValue()
Returns the most severe cached value of all children. |
abstract T |
getDisplayValue()
Returns the value that this node should represent. |
T |
getOwnValue()
Returns the value of this node. |
Object |
getParent()
|
void |
putIntoCache(Object key,
T value)
Puts a value into the cache and updates its value. |
void |
removeFromCache(Object key)
Removes a (child) object from the cache and updates its value. |
void |
setOwnValue(T newValue)
Sets the value of this node. |
void |
setParent(Object parent)
|
Collection<T> |
values()
Returns the cached values that are stored in the children nodes. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CachedTreeNode(T initialValue)
initialValue - the initial value| Method Detail |
|---|
public void putIntoCache(Object key,
T value)
key - the (child) object that contains the given valuevalue - an additional value that will be considered for the computation of the
actual value that results to a update() callpublic void removeFromCache(Object key)
key - the object to be removedpublic T getOwnValue()
public void setOwnValue(T newValue)
newValue - the new value to be associated with this nodepublic Collection<T> values()
public T getChildValue()
public abstract T getDisplayValue()
public Object getParent()
public void setParent(Object parent)
parent - the parent to set, this is not the parent tree node.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||