org.datacleaner.panels.ComponentBuilderPresenter Maven / Gradle / Ivy
/**
* DataCleaner (community edition)
* Copyright (C) 2014 Neopost - Customer Information Management
*
* This copyrighted material is made available to anyone wishing to use, modify,
* copy, or redistribute it subject to the terms and conditions of the GNU
* Lesser General Public License, as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
* for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this distribution; if not, write to:
* Free Software Foundation, Inc.
* 51 Franklin Street, Fifth Floor
* Boston, MA 02110-1301 USA
*/
package org.datacleaner.panels;
import javax.swing.JComponent;
import org.datacleaner.job.builder.ComponentBuilder;
import org.datacleaner.job.builder.UnconfiguredConfiguredPropertyException;
/**
* Interface for all job builder presenter objects. These are objects that are
* used to present the configuration screen (eg. the builder objects) of a
* component.
*/
public interface ComponentBuilderPresenter {
/**
* Gets the {@link ComponentBuilder} that is being presented
*
* @return
*/
ComponentBuilder getComponentBuilder();
/**
* Creates the {@link JComponent} that is the visual representation of the
* job builder.
*
* @return a {@link JComponent} that can be used to present the
* configuration of the job builder.
*/
JComponent createJComponent();
/**
* Invoked before execution, the presenter should make sure all configured
* properties are set on the job builder.
*
* @throws UnconfiguredConfiguredPropertyException
* in case one or more properties have not been configured
*/
void applyPropertyValues() throws UnconfiguredConfiguredPropertyException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy