com.sdm.quasar.client.swing.data.plugins
Interface CUFValueModelPlugIn

All Superinterfaces:
DataManagerPlugIn, Disposable
All Known Implementing Classes:
DefaultCUFValueModelPlugIn

public interface CUFValueModelPlugIn
extends DataManagerPlugIn

A plug in to the DataManager that provides an adapter between the DataManager and the CUF com.sdm.util.model.ValueModels in order to allow the CUF value binding to work with the DataManager

Note: this is work in progress. It should be extended as needed until it covers the whole scope of the cuf value models.

Version:
1.0
Author:
Bernd Olleck, sd&m AG

Method Summary
 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).
 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
 
Methods inherited from interface com.sdm.quasar.client.core.data.DataManagerPlugIn
install
 
Methods inherited from interface com.sdm.quasar.client.core.common.Disposable
dispose
 

Method Detail

getValueModel

public ValueModel getValueModel(java.lang.String key)
Returns a ValueModel for the node with the given key

Parameters:
key - the key of the node
Returns:
the value model for that node

getSelectionInListValueModel

public SelectionInList getSelectionInListValueModel(java.lang.String key)
Returns a SelectionInList for the node with the given key. The node must be an IndexedNode.

Parameters:
key - the key of the node
Returns:
the value model for that node

getDelegateAccess

public 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).

Parameters:
key - the key of the node whose value should be returned
keyIndexedValue - the key of the indexed node that forms the base of the delegate access
Returns:
the delegate access for that node