|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cosylab.gui.displayers.DataSourceSupport
com.cosylab.gui.adapters.DataConsumerDispatcher
com.cosylab.gui.adapters.OnApplyDispatcher
public class OnApplyDispatcher
| Field Summary | |
|---|---|
protected java.lang.Number |
valueToSet
|
| Fields inherited from class com.cosylab.gui.adapters.DataConsumerDispatcher |
|---|
name |
| Fields inherited from class com.cosylab.gui.displayers.DataSourceSupport |
|---|
types |
| Constructor Summary | |
|---|---|
OnApplyDispatcher()
Creates a new OnApplyDispatcher object. |
|
| Method Summary | |
|---|---|
void |
addConsumer(DataConsumer consumer)
In this method we investigate the following cases: if consumer is NonblockingNumberConsumer, the it comes from
peer data source and wants to receive notifications from peer cosnumer
about user change requests. |
void |
applyValue()
DOCUMENT ME! |
protected void |
cacheLastCharacteristics(java.util.Map characteristics)
If converter implementation decides to change characteristics it is very advisable to cache unmodified characteristics. |
void |
clear()
Releases all consumers and goes into initial state. |
protected java.util.Map |
getLastCharacteristics()
Returnes characcteristics whic was last time used on this data converter. |
protected NonblockingNumberDispatcher |
getNonblDisplatecher()
|
boolean |
isOnApply()
DOCUMENT ME! |
void |
setCharacteristics(java.util.Map characteristics)
This is called by peer data source. |
void |
setOnApply(boolean onApply)
DOCUMENT ME! |
void |
updateDataState(DataState state)
Push data state (quality) update change for dynamic value. |
void |
updateValue(long timestamp,
double value)
This is called by peer data source. |
void |
updateValue(long timestamp,
long value)
This is called by peer data source. |
| Methods inherited from class com.cosylab.gui.adapters.DataConsumerDispatcher |
|---|
getDataConsumer, getDefaultDataConsumer, getName, getSupportedCharacteristics, getSupportedConsumerTypes |
| Methods inherited from class com.cosylab.gui.displayers.DataSourceSupport |
|---|
clone, extractSupportedCharacteristics, getAcceptableConsumerTypes, getConsumers, removeAllConsumers, removeConsumer |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.cosylab.gui.displayers.DataConsumer |
|---|
getDataConsumer, getDefaultDataConsumer, getName, getSupportedCharacteristics, getSupportedConsumerTypes |
| Field Detail |
|---|
protected java.lang.Number valueToSet
| Constructor Detail |
|---|
public OnApplyDispatcher()
| Method Detail |
|---|
protected NonblockingNumberDispatcher getNonblDisplatecher()
public void applyValue()
public boolean isOnApply()
public void setOnApply(boolean onApply)
onApply - DOCUMENT ME!
public void addConsumer(DataConsumer consumer)
throws java.beans.PropertyVetoException
NonblockingNumberConsumer, the it comes from
peer data source and wants to receive notifications from peer cosnumer
about user change requests.
DataSource interface. It it does, we must notify listener
for user data change requests.
addConsumer in interface DataSourceaddConsumer in class DataSourceSupportconsumer - the data consumer to be regitered at this data source
java.beans.PropertyVetoExceptionDataSource.addConsumer(com.cosylab.gui.displayers.DataConsumer)protected void cacheLastCharacteristics(java.util.Map characteristics)
If implementation does not change characteristic, than this method doesen't have to be used.
characteristics - the unmodified characcteristics before
transformationpublic void clear()
DataSourceSupport
clear in class DataSourceSupportprotected java.util.Map getLastCharacteristics()
cacheLastCharacteristics(Map) to store
them.
cacheLastCharacteristics(Map)public void setCharacteristics(java.util.Map characteristics)
setCharacteristics in interface DataConsumersetCharacteristics in class DataConsumerDispatchercharacteristics - the Map with attriDataConsumer.setCharacteristics(java.util.Map)public void updateDataState(DataState state)
DataConsumer
updateDataState in interface DataConsumerupdateDataState in class DataConsumerDispatcherstate - new data state(quality) descriptor
public void updateValue(long timestamp,
double value)
throws CommonException
updateValue in interface DoubleConsumertimestamp - the time of dynamic value eventvalue - new value
CommonExceptionDoubleConsumer.updateValue(long, double)
public void updateValue(long timestamp,
long value)
throws CommonException
updateValue in interface LongConsumertimestamp - the time of dynamic value eventvalue - new value
CommonExceptionDoubleConsumer.updateValue(long, double)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||