|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| Method Summary | |
void |
addValueHandler(ValueHandler valueHandler)
Adds a ValueHandler to the list of value handlers in this
node.
|
void |
allowNotification()
Allows notification of changes. |
boolean |
canModifyValue(Context context)
Calls the chain of value handlers to test whether the value of this node can be modified |
void |
continueNodeValueChangedNotification()
Continues the notification across the node graph that this node's value has been changed. |
DataCore |
getDataCore()
|
java.util.List |
getDependentNodes()
|
java.util.Set |
getIndexSet(Context context)
Calls the chain of value handlers to return a Set of the index values for the node.
|
java.lang.String |
getKey()
Shortcut für getNode(). |
java.lang.Object |
getMetadata(java.lang.Class storingClass,
java.lang.String key)
Returns a stored data object for a plug in or a value handler |
Node |
getNode()
|
java.lang.Object |
getValue(Context context)
Calls the chain of value handlers to return the indexed value of the node |
boolean |
hasValue(Context context)
Calls the chain of value handlers to test whether this node has a value |
void |
notifyChildrenOfSourceValueChange()
This method notifies all of this node's children that their source value has changed. |
void |
notifySourcesOfChildValueChange()
This method notifies all of this node's sources that this node's value has changed. |
java.lang.Object |
removeMetadata(java.lang.Class storingClass,
java.lang.String key)
Removes a data object for a plug in or a value handler. |
void |
setMetadata(java.lang.Class storingClass,
java.lang.String key,
java.lang.Object value)
Stores a data object for a plug in or a value handler. |
void |
setValue(Context context,
java.lang.Object value)
Calls the chain of value handlers to set the (indexed) value of the node |
void |
startNodeValueChangedNotification()
Starts the notification across the node graph that this node's value has been changed. |
void |
stopNotification()
Temporary stops the notification of changes. |
| Method Detail |
public java.lang.String getKey()
getNode().Node.getKey().
public Node getNode()
NodeController.public DataCore getDataCore()
public java.lang.Object getMetadata(java.lang.Class storingClass,
java.lang.String key)
storingClass - the class that the data object has been stored forkey - the key under which the data object has been stored
public void setMetadata(java.lang.Class storingClass,
java.lang.String key,
java.lang.Object value)
storingClass - the class that the data object has been stored forkey - the key under which the data object should be storedvalue - the data object
public java.lang.Object removeMetadata(java.lang.Class storingClass,
java.lang.String key)
storingClass - the class that the data object has been stored forkey - the key under which the data object has been stored
public void addValueHandler(ValueHandler valueHandler)
ValueHandler to the list of value handlers in this
node.
These value handlers will be called in the reverse order they have been registered.
Node that a value handler may only be added while the node is being registered.
Important
: The first value handler to be added, which is the last value handler to be called, must take responsibility for storing and retrieving the value in accordance to the structure description defined byNode.
public java.lang.Object getValue(Context context)
context - the context to resolve the indices
DataManager.getValue(String, Context)
public void setValue(Context context,
java.lang.Object value)
context - the context to resolve the indicesvalue - the value of the nodeDataManager.setValue(String, Context, Object)public java.util.Set getIndexSet(Context context)
Set of the index values for the node.
The method returns null for not indexed nodes.
context - the context to resolve the indices
Set of the index values for the node or null.public boolean hasValue(Context context)
context - the context to resolve the indices
DataManager.hasValue(String)public boolean canModifyValue(Context context)
DataManager.canModifyValue(String)public void continueNodeValueChangedNotification()
public void notifySourcesOfChildValueChange()
public void notifyChildrenOfSourceValueChange()
public void stopNotification()
Important: When calling this method you must ensure that the
corresponding allowNotification() will be called even
in case of an error by using try ... finally.
public void allowNotification()
Important: After calling this method the caller must start an appropriate notification.
public void startNodeValueChangedNotification()
This notification may also be used to notify the node that the value has been changed by means outside the control of the data store.
public java.util.List getDependentNodes()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||