|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sdm.quasar.client.core.data.plugins.impl.EventNotificationValueHandler
A ValueHandler that notifies
a listener whenever change notifications are registered in the node.
| Constructor Summary | |
EventNotificationValueHandler(EventNotificationValueHandlerListener listener)
Creates a new EventNotificationValueHandler. |
|
| Method Summary | |
boolean |
canHandle(Node node)
Tests whether the value handler can handle nodes of the given type. Returns always true. |
boolean |
canModifyValue(NodeController node,
Context context,
NestedValueHandler nestedValueHandler)
Tests whether the value of the node can be modified. If the implementation takes responsability for the storing of the value it should determine the result on its own. Otherwise it should query the nested value handler using NestedValueHandler#canModifyValue().
Returns the value of NestedValueHandler#canModifyValue() without any changes. |
java.util.Set |
getIndexSet(NodeController node,
Context context,
NestedValueHandler nestedValueHandler)
Retrieves a 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).
Returns the result of NestedValueHandler#getIndexSet() without any changes. |
java.lang.Object |
getValue(NodeController node,
Context context,
NestedValueHandler nestedValueHandler)
Retrieves the value of the node. If this value handler does not take responsability for the storing of the value it must retrieve the value by using NestedValueHandler.getValue(Context).
Returns the value of NestedValueHandler#getValue() without any changes. |
boolean |
hasValue(NodeController node,
Context context,
NestedValueHandler nestedValueHandler)
Tests whether the node has a indexed value. If the implementation takes responsability for the storing of the value it should determine the result on its own. Otherwise it should query the nested value handler using NestedValueHandler#hasValue().
Returns the value of NestedValueHandler#hasValue() without any changes. |
void |
notifyChildValueChanged(NodeController node,
java.lang.String childKey)
Called when the value of a node that depends on this node has changed. Notifies the listener using EventNotificationValueHandlerListener.notifyChildValueChanged(NodeController, String). |
void |
notifyNodeValueChanged(NodeController node)
Called when the value of the node has changed because of a change originating at the given node. Notifies the listener using EventNotificationValueHandlerListener.notifyNodeValueChanged(NodeController). |
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. Notifies the listener using EventNotificationValueHandlerListener.notifySourceValueChanged(NodeController, String). |
void |
setValue(NodeController node,
Context context,
java.lang.Object value,
NestedValueHandler nestedValueHandler)
Sets the indexed value of the node. If it takes responsability for the storing of the value it must notify the node of the change if appropriate by using NodeController.startNodeValueChangedNotification().
If it does not take responsability it must notify the
nested value handler using
NestedValueHandler.setValue(Context, Object).
Calls NestedValueHandler#setValue(Object) without any changes. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public EventNotificationValueHandler(EventNotificationValueHandlerListener listener)
EventNotificationValueHandler.
listener - the listener to be notified on change events in the value handler| Method Detail |
public boolean canHandle(Node node)
canHandle in interface ValueHandlernode - the node definition
ValueHandler.canHandle(Node)
public boolean hasValue(NodeController node,
Context context,
NestedValueHandler nestedValueHandler)
NestedValueHandler#hasValue().
Returns the value of NestedValueHandler#hasValue() without any changes.
hasValue in interface ValueHandlernode - the concerned nodecontext - the context to resolve the indicesnestedValueHandler - the adapter to the next value handler
com.sdm.quasar.client.core.data.internal.impl.ValueHandler#hasValue(com.sdm.quasar.client.core.data.internal.impl.NodeController, com.sdm.quasar.client.core.data.Context, com.sdm.quasar.client.core.data.internal.impl.NestedValueHandler)
public java.lang.Object getValue(NodeController node,
Context context,
NestedValueHandler nestedValueHandler)
NestedValueHandler.getValue(Context).
Returns the value of NestedValueHandler#getValue() without any changes.
getValue in interface ValueHandlernode - 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
com.sdm.quasar.client.core.data.internal.impl.ValueHandler#getValue(com.sdm.quasar.client.core.data.internal.impl.NodeController, com.sdm.quasar.client.core.data.Context, com.sdm.quasar.client.core.data.internal.impl.NestedValueHandler)
public boolean canModifyValue(NodeController node,
Context context,
NestedValueHandler nestedValueHandler)
NestedValueHandler#canModifyValue().
Returns the value of NestedValueHandler#canModifyValue() without any changes.
canModifyValue in interface ValueHandlernode - the concerned nodecontext - the context to resolve the indicesnestedValueHandler - the adapter to the next value handler
com.sdm.quasar.client.core.data.internal.impl.ValueHandler#canModifyValue(com.sdm.quasar.client.core.data.internal.impl.NodeController, com.sdm.quasar.client.core.data.Context, com.sdm.quasar.client.core.data.internal.impl.NestedValueHandler)
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).
Calls NestedValueHandler#setValue(Object) without any changes.
setValue in interface ValueHandlernode - 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 nodecom.sdm.quasar.client.core.data.internal.impl.ValueHandler#setValue(com.sdm.quasar.client.core.data.internal.impl.NodeController, com.sdm.quasar.client.core.data.Context, java.lang.Object, com.sdm.quasar.client.core.data.internal.impl.NestedValueHandler)
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).
Returns the result of NestedValueHandler#getIndexSet() without any changes.
getIndexSet in interface ValueHandlernode - 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.com.sdm.quasar.client.core.data.internal.impl.ValueHandler#getIndexSet(com.sdm.quasar.client.core.data.internal.impl.NodeController, com.sdm.quasar.client.core.data.Context, com.sdm.quasar.client.core.data.internal.impl.NestedValueHandler)public void notifyNodeValueChanged(NodeController node)
EventNotificationValueHandlerListener.notifyNodeValueChanged(NodeController).
notifyNodeValueChanged in interface ValueHandlernode - the node whose value has changedValueHandler.notifyNodeValueChanged(NodeController)
public void notifySourceValueChanged(NodeController node,
java.lang.String sourceKey)
EventNotificationValueHandlerListener.notifySourceValueChanged(NodeController, String).
notifySourceValueChanged in interface ValueHandlernode - the node that is notifiedsourceKey - the key of the source node whose value has changedValueHandler.notifySourceValueChanged(NodeController, String)
public void notifyChildValueChanged(NodeController node,
java.lang.String childKey)
EventNotificationValueHandlerListener.notifyChildValueChanged(NodeController, String).
notifyChildValueChanged in interface ValueHandlernode - the node that is notifiedchildKey - the key of the child node whose value has changedValueHandler.notifyChildValueChanged(NodeController, String)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||