All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.scudata.ide.common.IDataSourceEditor Maven / Gradle / Ivy

Go to download

SPL(Structured Process Language) A programming language specially for structured data computing.

There is a newer version: 20240823
Show newest version
package com.scudata.ide.common;

/**
 * Data source editor interface
 * 
 * To use a custom data source editor in the designer, you need to implement
 * this interface. The implementation class of IDataSourceEditor needs to be
 * configured in the CONFIG node in systemconfig.xml. E.g: public class
 * MyDataSourceEditor implements IDataSourceEditor 
 */
public interface IDataSourceEditor {
	/**
	 * Initialize the editor according to the data source configuration
	 * 
	 * @param dsModel
	 *            Data source list
	 */
	public void init(DataSourceListModel dsModel);

	/**
	 * Show editor
	 */
	public void showEditor();

	/**
	 * Whether to submit changes. The getDataSourceListModel() is called only
	 * when the modification is confirmed.
	 * 
	 * @return True to submit the modification, false to cancel.
	 */
	public boolean isCommitted();

	/**
	 * Get the edited data source list
	 * 
	 * @return Data source list
	 */
	public DataSourceListModel getDataSourceListModel();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy