|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sdm.quasar.client.core.data.plugin.AbstractDataManagerPlugIn
com.sdm.quasar.client.swing.data.plugins.impl.DefaultCUFValueModelPlugIn
Implementation for
com.sdm.quasar.client.core.data.cuf.CUFValueModelPlugIn.
This implementation can be added as one of the later plug ins. It requires an
installed IndexedValuesPlugIn.
Note: this is work in progress. It should be extended as needed until it covers the whole scope of the cuf value models.
| Nested Class Summary | |
protected class |
DefaultCUFValueModelPlugIn.DelegateAccessAdapter
Adapter that offers a DelegateAccess based on a target node and an
indexed node. |
protected class |
DefaultCUFValueModelPlugIn.SelectionInListAdapter
Adapter that offers a SelectionInList based on an
IndexedNode. |
protected class |
DefaultCUFValueModelPlugIn.ValueModelAdapter
Adapter that offers a ValueModel based on the methods available in
NodeController. |
| Constructor Summary | |
DefaultCUFValueModelPlugIn()
Constructor. |
|
| Method Summary | |
void |
dispose()
Disposes the component. |
DelegateAccess |
getDelegateAccess(java.lang.String key,
java.lang.String keyIndexedValue)
Returns a DelegateAccess for the node with the given key
based on an indexed node that contains the value which is passed
to DelegateAccess#getValue(java.lang.Object). |
protected DefaultCUFValueModelPlugIn.DelegateAccessAdapter |
getDelegateAccessAdapter(NodeController node)
Returns the DefaultCUFValueModelPlugIn.DelegateAccessAdapter stored in the metadata of the
node. |
protected DefaultCUFValueModelPlugIn.SelectionInListAdapter |
getSelectionInListAdapter(NodeController node)
Returns the SelectionInList stored in the metadata of the node. |
SelectionInList |
getSelectionInListValueModel(java.lang.String key)
Returns a SelectionInList for the node with the given key.
|
ValueModel |
getValueModel(java.lang.String key)
Returns a ValueModel for the node with the given key |
protected DefaultCUFValueModelPlugIn.ValueModelAdapter |
getValueModelAdapter(NodeController node)
Returns the DefaultCUFValueModelPlugIn.ValueModelAdapter stored in the metadata of the node. |
void |
notifyChildValueChanged(NodeController node,
java.lang.String childKey)
Notifies a selection in list if present that one of its child values may have changed. |
protected void |
notifyNodeAdded(NodeController node)
Registers tthe #eventNotificationValueHandler. |
void |
notifyNodeValueChanged(NodeController node)
Notifies the value model registered for that node. |
protected void |
notifyNodeWillBeRemoved(NodeController node)
Called by the DataCore before a node will be removed. |
void |
notifySourceValueChanged(NodeController node,
java.lang.String sourceKey)
Notifies the value model registered for that node |
protected void |
setDelegateAccessAdapter(NodeController node,
DefaultCUFValueModelPlugIn.DelegateAccessAdapter selectionInList)
Stores the DefaultCUFValueModelPlugIn.DelegateAccessAdapter in the metadata of the node |
protected void |
setSelectionInListAdapter(NodeController node,
DefaultCUFValueModelPlugIn.SelectionInListAdapter selectionInList)
Stores the SelectionInList in the metadata of the node |
protected void |
setValueModelAdapter(NodeController node,
DefaultCUFValueModelPlugIn.ValueModelAdapter adapter)
Stores the DefaultCUFValueModelPlugIn.ValueModelAdapter in the metadata of the node |
| Methods inherited from class com.sdm.quasar.client.core.data.plugin.AbstractDataManagerPlugIn |
getDataCore, install |
| 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.DataManagerPlugIn |
install |
| Constructor Detail |
public DefaultCUFValueModelPlugIn()
| Method Detail |
protected void notifyNodeAdded(NodeController node)
#eventNotificationValueHandler.
notifyNodeAdded in class AbstractDataManagerPlugInnode - the node that has been addedAbstractDataManagerPlugIn.notifyNodeAdded(NodeController)protected void notifyNodeWillBeRemoved(NodeController node)
AbstractDataManagerPlugInDataCore before a node will be removed.
notifyNodeWillBeRemoved in class AbstractDataManagerPlugInnode - the key of the node that will be removed.public ValueModel getValueModel(java.lang.String key)
CUFValueModelPlugInValueModel for the node with the given key
getValueModel in interface CUFValueModelPlugInkey - the key of the node
public SelectionInList getSelectionInListValueModel(java.lang.String key)
CUFValueModelPlugInSelectionInList for the node with the given key.
The node must be an IndexedNode.
getSelectionInListValueModel in interface CUFValueModelPlugInkey - the key of the node
public DelegateAccess getDelegateAccess(java.lang.String key,
java.lang.String keyIndexedValue)
CUFValueModelPlugInDelegateAccess for the node with the given key
based on an indexed node that contains the value which is passed
to DelegateAccess#getValue(java.lang.Object).
getDelegateAccess in interface CUFValueModelPlugInkey - the key of the node whose value should be returnedkeyIndexedValue - the key of the indexed node that forms the base of the delegate access
public void notifyNodeValueChanged(NodeController node)
notifyNodeValueChanged in interface EventNotificationValueHandlerListenernode - the node whose value has changedEventNotificationValueHandlerListener.notifyNodeValueChanged(NodeController)
public void notifyChildValueChanged(NodeController node,
java.lang.String childKey)
notifyChildValueChanged in interface EventNotificationValueHandlerListenernode - the node whose child value has changedchildKey - the key of the child node that has changedEventNotificationValueHandlerListener.notifyChildValueChanged(NodeController,
String)
public void notifySourceValueChanged(NodeController node,
java.lang.String sourceKey)
notifySourceValueChanged in interface EventNotificationValueHandlerListenernode - the node whose source value has changedsourceKey - the key of the source node that has changedEventNotificationValueHandlerListener.notifySourceValueChanged(NodeController,
String)
public void dispose()
throws DisposeException
Disposable
Important:
This method is called by an administrating component
and must never be called directly.
The implementation should release any resources or objects allocated and
any services registered. Furthermore, this method should be developed
carefully to free a maximum of resources even when the system may
have become unstable. In case of one or multiple errors, you should collect
them in a DisposeException, continue with the execution,
and throw it at the end of the method.
Note: The implementation must not return before the component is disposed. Any threads or asynchronous calls started must be completed before this method returns.
dispose in interface Disposabledispose in class AbstractDataManagerPlugInDisposeExceptionDisposable.dispose()protected DefaultCUFValueModelPlugIn.ValueModelAdapter getValueModelAdapter(NodeController node)
DefaultCUFValueModelPlugIn.ValueModelAdapter stored in the metadata of the node.
node - the node
protected void setValueModelAdapter(NodeController node,
DefaultCUFValueModelPlugIn.ValueModelAdapter adapter)
DefaultCUFValueModelPlugIn.ValueModelAdapter in the metadata of the node
node - the nodeadapter - the adapter to be storedprotected DefaultCUFValueModelPlugIn.SelectionInListAdapter getSelectionInListAdapter(NodeController node)
SelectionInList stored in the metadata of the node.
node - the node
protected void setSelectionInListAdapter(NodeController node,
DefaultCUFValueModelPlugIn.SelectionInListAdapter selectionInList)
SelectionInList in the metadata of the node
node - the nodeselectionInList - the adapter to be storedprotected DefaultCUFValueModelPlugIn.DelegateAccessAdapter getDelegateAccessAdapter(NodeController node)
DefaultCUFValueModelPlugIn.DelegateAccessAdapter stored in the metadata of the
node.
node - the node
protected void setDelegateAccessAdapter(NodeController node,
DefaultCUFValueModelPlugIn.DelegateAccessAdapter selectionInList)
DefaultCUFValueModelPlugIn.DelegateAccessAdapter in the metadata of the node
node - the nodeselectionInList - the adapter to be stored
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||