KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jac > aspects > gui > EditorContainer


1 /*
2   Copyright (C) 2002-2003 Renaud Pawlak <renaud@aopsys.com>,
3                           Laurent Martelli <laurent@aopsys.com>
4   
5   This program is free software; you can redistribute it and/or modify
6   it under the terms of the GNU Lesser General Public License as
7   published by the Free Software Foundation; either version 2 of the
8   License, or (at your option) any later version.
9
10   This program is distributed in the hope that it will be useful,
11   but WITHOUT ANY WARRANTY; without even the implied warranty of
12   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13   GNU Lesser General Public License for more details.
14
15   You should have received a copy of the GNU Lesser General Public License
16   along with this program; if not, write to the Free Software
17   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */

18
19 package org.objectweb.jac.aspects.gui;
20
21 import java.util.List JavaDoc;
22
23 /**
24  * A container for editor components.
25  */

26 public interface EditorContainer {
27
28    /**
29     * Add an editor to the container.
30     */

31    void addEditor(Object JavaDoc value);
32
33    /**
34     * Remove an editor from the container.
35     */

36    void removeEditor(Object JavaDoc editor);
37
38    /**
39     * Get the list of all editors of this container.
40     */

41    List JavaDoc getEditors();
42
43    /**
44     * Returns true if at least one editor is enabled.
45     */

46    boolean hasEnabledEditor();
47
48    /**
49     * Sets the showButtons property of the container. If true, it will
50     * offer a validation mechanism (typically, some OK/Cancel
51     * buttons).
52     */

53    void setShowButtons(boolean value);
54    
55    /**
56     * Gets the value of showButtons
57     * @see #setShowButtons(boolean)
58     */

59    boolean showButtons();
60
61 }
62
Popular Tags