i-net Clear Reports

com.inet.report.config.datasource
Interface DataSourceConfigurationChangeListener


public interface DataSourceConfigurationChangeListener

This interface can be useful for GUI tools that have to get notified if a DataSourceConfiguration was changed. You can the information when a new DataSourceConfiguration was created, when an existing DataSourceConfiguration was deleted and when a property of a DataSourceConfiguration was changed.

 
 DataSourceConfigurationManager.addDataSourceConfigurationListener(new DataSourceConfigurationChangeListener(){
 
      public void propertyChanged(DataSourceConfiguration dsc, String property, String oldValue, String newValue){
          // implement your code here
      }
      public void addedDataSourceConfiguration(DataSourceConfiguration dsc){
          // implement your code here
      }
      
      public void removedDataSourceConfiguration(DataSourceConfiguration dsc){
          // implement your code here
      }
 });
 
 
 


Method Summary
 void addedDataSourceConfiguration(DataSourceConfiguration dsc)
          This method will called if a DataSourceConfiguration was created.
 void propertyChanged(DataSourceConfiguration dsc, java.lang.String property, java.lang.String oldValue, java.lang.String newValue)
          This method will invoked if a property of a DataSourceConfiguration was changed.
 void removedDataSourceConfiguration(DataSourceConfiguration dsc)
          This method will called if a DataSourceConfiguration was removed from list.
 

Method Detail

propertyChanged

void propertyChanged(DataSourceConfiguration dsc,
                     java.lang.String property,
                     java.lang.String oldValue,
                     java.lang.String newValue)
This method will invoked if a property of a DataSourceConfiguration was changed.

Parameters:
dsc - the DataSourceConfiguration object that was edited.
property - the property that was changed.
oldValue - the old value.
newValue - the new value.

addedDataSourceConfiguration

void addedDataSourceConfiguration(DataSourceConfiguration dsc)
This method will called if a DataSourceConfiguration was created. At the timestamp of invoke this methode, the datasource configuration has no properties, only the configuration name is set.

Parameters:
dsc - the DataSourceConfiguration that was created.

removedDataSourceConfiguration

void removedDataSourceConfiguration(DataSourceConfiguration dsc)
This method will called if a DataSourceConfiguration was removed from list.

Parameters:
dsc - the DataSourceConfiguration that was removed.

i-net Clear Reports

Copyright © 1999-2011 by i-net software GmbH