001/** 002 * CreateProfile.java 003 * jCOLIBRI2 framework. 004 * @author Juan A. Recio-Garc�a. 005 * GAIA - Group for Artificial Intelligence Applications 006 * http://gaia.fdi.ucm.es 007 * 02/11/2007 008 */ 009package es.ucm.fdi.gaia.jcolibri.method.gui.editors; 010 011import java.util.Collection; 012import javax.swing.JComponent; 013 014/** 015 * Interface for the parameter Editors used by the methods that obtain 016 * the query graphically. 017 * 018 * @author Juan A. Recio-Garcia 019 * @version 1.0 020 * 021 */ 022public interface ParameterEditor { 023 024 /** 025 * Gets the Editor value 026 */ 027 public Object getEditorValue(); 028 029 /** 030 * Gets the Editor as a JComponent to be added to the panel 031 */ 032 public JComponent getJComponent(); 033 034 /** 035 * Sets the default value of the editor 036 */ 037 public void setEditorValue(Object value); 038 039 /** 040 * Sets the allowed values for the editor 041 */ 042 public void setAllowedValues(Collection<Object> allowedValues); 043}