|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataSource
DataSource
is interface for generic data source. Data source
source dispatches dynamic value updates to registered data consumers.
com.cosylab.gui.displayers2.DataConsumer
Method Summary | |
---|---|
void |
addConsumer(DataConsumer consumer)
Registers data consumer at this data source. |
java.lang.Class<DataConsumer>[] |
getAcceptableConsumerTypes()
Returns the array of consumer types, which are acceptable by this data source. |
DataConsumer[] |
getConsumers()
Returns array of registered data consumer. |
void |
removeAllConsumers()
Removes all consumers from data source and releases all resources and bindings allocated inside datasource to the consumers. |
void |
removeConsumer(DataConsumer consumer)
Deregisters data consumer from this data source. |
Method Detail |
---|
void addConsumer(DataConsumer consumer) throws java.beans.PropertyVetoException
PropertyVetoException
if consumer
does not provide necessary DataConsumer
type.
consumer
- the data consumer to be regitered at this data source
java.beans.PropertyVetoException
DataConsumer.getDataConsumer(Class)
void removeConsumer(DataConsumer consumer)
consumer
- data consumer to be deregisteredDataConsumer[] getConsumers()
java.lang.Class<DataConsumer>[] getAcceptableConsumerTypes()
void removeAllConsumers()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |