001    /*
002      Copyright (C) 2002-2003 Renaud Pawlak <renaud@aopsys.com>, 
003                              Laurent Martelli <laurent@aopsys.com>
004      
005      This program is free software; you can redistribute it and/or modify
006      it under the terms of the GNU Lesser General Public License as
007      published by the Free Software Foundation; either version 2 of the
008      License, or (at your option) any later version.
009    
010      This program is distributed in the hope that it will be useful,
011      but WITHOUT ANY WARRANTY; without even the implied warranty of
012      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
013      GNU Lesser General Public License for more details.
014    
015      You should have received a copy of the GNU Lesser General Public License
016      along with this program; if not, write to the Free Software
017      Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
018    
019    package org.objectweb.jac.aspects.gui;
020    
021    import java.util.List;
022    
023    /**
024     * A container for editor components.
025     */
026    public interface EditorContainer {
027    
028       /**
029        * Add an editor to the container.
030        */
031       void addEditor(Object value);
032    
033       /**
034        * Remove an editor from the container.
035        */
036       void removeEditor(Object editor);
037    
038       /**
039        * Get the list of all editors of this container.
040        */
041       List getEditors();
042    
043       /**
044        * Returns true if at least one editor is enabled.
045        */
046       boolean hasEnabledEditor();
047    
048       /**
049        * Sets the showButtons property of the container. If true, it will
050        * offer a validation mechanism (typically, some OK/Cancel
051        * buttons).  
052        */
053       void setShowButtons(boolean value);
054       
055       /**
056        * Gets the value of showButtons
057        * @see #setShowButtons(boolean)
058        */
059       boolean showButtons();
060    
061    }