|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Handles a request concerning the value of a node.
ValueHandlers are created and added to a node
by plug ins when the node is created.
TODO Should ValueHandler and DataManager support index aware methods for hasValue and canModifyValue? (BOL: I think yes) MAH: nach Rel 2.0
| Method Summary | |
boolean |
canHandle(Node node)
Tests whether the value handler can handle nodes of the given type. |
boolean |
canModifyValue(NodeController node,
Context context,
NestedValueHandler nestedValueHandler)
Tests whether the value of the node can be modified. |
java.util.Set |
getIndexSet(NodeController node,
Context context,
NestedValueHandler nestedValueHandler)
Retrieves a Set of the index values for the node.
|
java.lang.Object |
getValue(NodeController node,
Context context,
NestedValueHandler nestedValueHandler)
Retrieves the value of the node. |
boolean |
hasValue(NodeController node,
Context context,
NestedValueHandler nestedValueHandler)
Tests whether the node has a indexed value. |
void |
notifyChildValueChanged(NodeController node,
java.lang.String childKey)
Called when the value of a node that depends on this node has changed. |
void |
notifyNodeValueChanged(NodeController node)
Called when the value of the node has changed because of a change originating at the given node. |
void |
notifySourceValueChanged(NodeController node,
java.lang.String sourceKey)
Called when the value of a node that the node depends on or an ancestor further removed has changed. |
void |
setValue(NodeController node,
Context context,
java.lang.Object value,
NestedValueHandler nestedValueHandler)
Sets the indexed value of the node. |
| Method Detail |
public boolean canHandle(Node node)
node - the node definition
public boolean hasValue(NodeController node,
Context context,
NestedValueHandler nestedValueHandler)
NestedValueHandler#hasValue().
node - the concerned nodecontext - the context to resolve the indicesnestedValueHandler - the adapter to the next value handler
NodeController.hasValue(Context)
public java.lang.Object getValue(NodeController node,
Context context,
NestedValueHandler nestedValueHandler)
NestedValueHandler.getValue(Context).
node - the concerned nodecontext - the context to resolve the indicesnestedValueHandler - the adapter to the next value handler
in the chain of value handlers of that node
public boolean canModifyValue(NodeController node,
Context context,
NestedValueHandler nestedValueHandler)
NestedValueHandler#canModifyValue().
node - the concerned nodecontext - the context to resolve the indicesnestedValueHandler - the adapter to the next value handler
NodeController#canModifyValue()
public void setValue(NodeController node,
Context context,
java.lang.Object value,
NestedValueHandler nestedValueHandler)
NodeController.startNodeValueChangedNotification().
If it does not take responsability it must notify the
nested value handler using
NestedValueHandler.setValue(Context, Object).
node - the concerned nodecontext - the context to resolve the indicesvalue - the value to be set, may be nullnestedValueHandler - the adapter to the next value handler
in the chain of value handlers of that nodeNodeController.setValue(Context, Object)
public java.util.Set getIndexSet(NodeController node,
Context context,
NestedValueHandler nestedValueHandler)
Set of the index values for the node.
If this value handler does not take responsability for the storing of the value
it must retrieve the set by using NestedValueHandler.getIndexSet(com.sdm.quasar.client.core.data.Context).
node - the concerned nodecontext - the context to resolve the indicesnestedValueHandler - the adapter to the next value handler
Set of the index values for the node or null.public void notifyNodeValueChanged(NodeController node)
node - the node whose value has changed
public void notifySourceValueChanged(NodeController node,
java.lang.String sourceKey)
node - the node that is notifiedsourceKey - the key of the source node whose value has changed
public void notifyChildValueChanged(NodeController node,
java.lang.String childKey)
node - the node that is notifiedchildKey - the key of the child node whose value has changed
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||