|
|||||||||||
| 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.core.data.plugins.impl.DefaultIndexedValuesPlugIn
Implementation of the IndexedValuesPlugIn.
This implementation should be registered as the first plug in after
com.sdm.quasar.client.core.data.BasicValuesPlugIn
since it provides the basic infrastructure.
| Constructor Summary | |
DefaultIndexedValuesPlugIn()
Constructor. |
|
| Method Summary | |
void |
dispose()
Disposes the component. |
java.lang.Object |
getIndexForValue(java.lang.String key,
java.lang.Object value)
Returns the index that would return the given value if used as part of a Context in an indexed access.
|
void |
install(DataCore dataCore)
Called by the data core when the plug in is installed in the data core |
protected void |
notifyNodeAdded(NodeController node)
Installs a value handler if the node is either a IndexedNode and its source type is a List. |
protected void |
notifyNodeWillBeRemoved(NodeController node)
Called by the DataCore before a node will be removed. |
| Methods inherited from class com.sdm.quasar.client.core.data.plugin.AbstractDataManagerPlugIn |
getDataCore |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultIndexedValuesPlugIn()
| Method Detail |
public void install(DataCore dataCore)
DataManagerPlugIn
install in interface DataManagerPlugIninstall in class AbstractDataManagerPlugInAbstractDataManagerPlugIn.install(com.sdm.quasar.client.core.data.plugin.DataCore)protected void notifyNodeAdded(NodeController node)
IndexedNode and its source type is a List.
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 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()
public java.lang.Object getIndexForValue(java.lang.String key,
java.lang.Object value)
IndexedValuesPlugInContext in an indexed access.
If the value cannot be found, null will be returned.
If the value exists more than one time on the collection, the first occurrence is returned. Please note that a second call might not return the same index in this case.
getIndexForValue in interface IndexedValuesPlugInkey - the key of the node that is the indexed valuevalue - the value to be searched for
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||