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     */
009    package jcolibri.method.gui.editors;
010    
011    import java.util.Collection;
012    
013    import javax.swing.JComponent;
014    
015    /**
016     * Interface for the parameter Editors used by the methods that obtain
017     * the query graphically.
018     * 
019     * @author Juan A. Recio-Garcia
020     * @version 1.0
021     *
022     */
023    public interface ParameterEditor {
024    
025        /**
026         * Gets the Editor value
027         */
028        public Object getEditorValue();
029    
030        /**
031         * Gets the Editor as a JComponent to be added to the panel
032         */
033        public JComponent getJComponent();
034    
035        /**
036         * Sets the default value of the editor
037         */
038        public void setEditorValue(Object value);
039        
040        /**
041         * Sets the allowed values for the editor
042         */
043        public void setAllowedValues(Collection<Object> allowedValues);
044    }