|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cosylab.gui.displayers.DataSourceSupport
public class DataSourceSupport
DataSourceSupport
is conveniencee implementation base for
DataSource
interface.
Field Summary | |
---|---|
protected java.lang.Class<DataConsumer>[] |
types
|
Constructor Summary | |
---|---|
DataSourceSupport(java.lang.Class<DataConsumer>[] supportedTypes)
Constructs support with defined supported types. |
Method Summary | |
---|---|
void |
addConsumer(DataConsumer consumer)
This support implementation does not perform any type check on consumer, it just adds it to list of consumers. |
void |
clear()
Releases all consumers and goes into initial state. |
protected java.lang.Object |
clone()
|
java.lang.String[] |
extractSupportedCharacteristics()
Form all contained consumers extracts supported characteristics. |
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()
Clears all consumers from this DataSource. |
void |
removeConsumer(DataConsumer consumer)
Deregisters data consumer from this data source. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.Class<DataConsumer>[] types
Constructor Detail |
---|
public DataSourceSupport(java.lang.Class<DataConsumer>[] supportedTypes)
supportedTypes
- types of DataConsumer that this source will
supportMethod Detail |
---|
public void addConsumer(DataConsumer consumer) throws java.beans.PropertyVetoException
addConsumer
in interface DataSource
consumer
- the data consumer to be regitered at this data source
java.beans.PropertyVetoException
DataSource.addConsumer(com.cosylab.gui.displayers.DataConsumer)
public void removeConsumer(DataConsumer consumer)
DataSource
removeConsumer
in interface DataSource
consumer
- data consumer to be deregisteredpublic DataConsumer[] getConsumers()
DataSource
getConsumers
in interface DataSource
public void removeAllConsumers()
removeAllConsumers
in interface DataSource
public java.lang.Class<DataConsumer>[] getAcceptableConsumerTypes()
DataSource
getAcceptableConsumerTypes
in interface DataSource
public java.lang.String[] extractSupportedCharacteristics()
public void clear()
protected java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |