|
|||||||||||
| 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.AbstractIndexedValueHandler
| Constructor Summary | |
AbstractIndexedValueHandler()
|
|
| Method Summary | |
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().
Always returns false since the value can only be modified when using a
context. |
protected abstract java.lang.Object |
getIndexedValue(java.lang.Object sourceValue,
java.lang.Object indexValue)
Template method to retrieve to value of the given index from the given source value. |
java.util.Set |
getIndexSet(NodeController node,
Context context,
NestedValueHandler nestedValueHandler)
Retrieves a Set of the index values for the node.
|
protected abstract java.util.Set |
getIndexSet(java.lang.Object sourceValue)
Template method to retrieve the set of index values for the given source value. |
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. This implementation does nothing. |
void |
notifyNodeValueChanged(NodeController node)
Called when the value of the node has changed because of a change originating at the given node. This implementation does nothing |
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. This implenentation does nothing |
protected abstract void |
setIndexedValue(java.lang.Object sourceValue,
java.lang.Object indexValue,
NodeController node,
java.lang.Object value)
Template method to set a value for the given index at the given source value. |
void |
setValue(NodeController node,
Context context,
java.lang.Object value,
NestedValueHandler nestedValueHandler)
Sets the indexed value of the node. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.sdm.quasar.client.core.data.plugin.ValueHandler |
canHandle |
| Constructor Detail |
public AbstractIndexedValueHandler()
| Method Detail |
public final java.lang.Object getValue(NodeController node,
Context context,
NestedValueHandler nestedValueHandler)
ValueHandlerNestedValueHandler.getValue(Context).
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)
protected abstract java.lang.Object getIndexedValue(java.lang.Object sourceValue,
java.lang.Object indexValue)
sourceValue - the source value of the nodeindexValue - the index of the requested value
public final void setValue(NodeController node,
Context context,
java.lang.Object value,
NestedValueHandler nestedValueHandler)
ValueHandlerNodeController.startNodeValueChangedNotification().
If it does not take responsability it must notify the
nested value handler using
NestedValueHandler.setValue(Context, Object).
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)
protected abstract void setIndexedValue(java.lang.Object sourceValue,
java.lang.Object indexValue,
NodeController node,
java.lang.Object value)
sourceValue - the source value of the nodeindexValue - the index of the requested valuenode - the node controlle of the nodevalue - of the given index from the given source value
public final java.util.Set getIndexSet(NodeController node,
Context context,
NestedValueHandler nestedValueHandler)
ValueHandlerSet 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).
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)protected abstract java.util.Set getIndexSet(java.lang.Object sourceValue)
sourceValue - the source value of the node
public boolean canModifyValue(NodeController node,
Context context,
NestedValueHandler nestedValueHandler)
NestedValueHandler#canModifyValue().
Always returns false since the value can only be modified when using a
context.
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 boolean hasValue(NodeController node,
Context context,
NestedValueHandler nestedValueHandler)
ValueHandlerNestedValueHandler#hasValue().
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 void notifyNodeValueChanged(NodeController node)
notifyNodeValueChanged in interface ValueHandlernode - the node whose value has changedcom.sdm.quasar.client.core.data.internal.impl.ValueHandler#notifyNodeValueChanged(com.sdm.quasar.client.core.data.internal.impl.NodeController)
public void notifyChildValueChanged(NodeController node,
java.lang.String childKey)
notifyChildValueChanged in interface ValueHandlernode - the node that is notifiedchildKey - the key of the child node whose value has changedcom.sdm.quasar.client.core.data.internal.impl.ValueHandler#notifyChildValueChanged(com.sdm.quasar.client.core.data.internal.impl.NodeController,
java.lang.String)
public void notifySourceValueChanged(NodeController node,
java.lang.String sourceKey)
notifySourceValueChanged in interface ValueHandlernode - the node that is notifiedsourceKey - the key of the source node whose value has changedcom.sdm.quasar.client.core.data.internal.impl.ValueHandler#notifySourceValueChanged(com.sdm.quasar.client.core.data.internal.impl.NodeController,
String)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||