DESY ACOP Beans Home

com.cosylab.gui.displayers
Interface DataSource

All Known Subinterfaces:
Converter, DataSourceJoint<T>
All Known Implementing Classes:
AbstractConverter, AcopButton, AcopCheckBox, AcopDataSourceJoint, AcopDialKnob, AcopNumberLabel, AcopSlider, AcopTransportDataSource, AcopWheelswitch, AsynchronousDispatcher, ButtonController, CheckBoxController, ConverterChain, DataConsumerDispatcher, DataSourceSupport, DialKnobDisplayer, DoubleNumberDisplayer, ExponentialConverter, IdentityConverter, LinearConverter, LogarithmicConverter, MultiplierConverter, NonblockingNumberDispatcher, OnApplyDispatcher, PotentialConverter, SimpleArrayConverterSupport, SimpleConverterSupport, SliderDisplayer, SliderDisplayerSetter, SynchronousNumberDispatcher, WheelswitchDisplayer

public interface DataSource

DataSource is interface for generic data source. Data source source dispatches dynamic value updates to registered data consumers.

Since:
Nov 24, 2003.
Version:
$Id: DataSource.java,v 1.4 2008-04-22 12:31:02 jbobnar Exp $
Author:
Igor Kriznar
See Also:
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

addConsumer

void addConsumer(DataConsumer consumer)
                 throws java.beans.PropertyVetoException
Registers data consumer at this data source. This data source can denay consumer by throwing PropertyVetoException if consumer does not provide necessary DataConsumer type.

Parameters:
consumer - the data consumer to be regitered at this data source
Throws:
java.beans.PropertyVetoException
See Also:
DataConsumer.getDataConsumer(Class)

removeConsumer

void removeConsumer(DataConsumer consumer)
Deregisters data consumer from this data source.

Parameters:
consumer - data consumer to be deregistered

getConsumers

DataConsumer[] getConsumers()
Returns array of registered data consumer.

Returns:
array of registered data consumer

getAcceptableConsumerTypes

java.lang.Class<DataConsumer>[] getAcceptableConsumerTypes()
Returns the array of consumer types, which are acceptable by this data source.

Returns:
the array of acceptable data source types

removeAllConsumers

void removeAllConsumers()
Removes all consumers from data source and releases all resources and bindings allocated inside datasource to the consumers.



Copyright © 2010. All Rights Reserved.