1
/* ========================================================================
2
* JCommon : a free general purpose class library for the Java(tm) platform
3
* ========================================================================
5
* (C) Copyright 2000-2005, by Object Refinery Limited and Contributors.
7
* Project Info: http://www.jfree.org/jcommon/index.html
9
* This library is free software; you can redistribute it and/or modify it
10
* under the terms of the GNU Lesser General Public License as published by
11
* the Free Software Foundation; either version 2.1 of the License, or
12
* (at your option) any later version.
14
* This library is distributed in the hope that it will be useful, but
15
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
16
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
17
* License for more details.
19
* You should have received a copy of the GNU Lesser General Public
20
* License along with this library; if not, write to the Free Software
21
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
24
* [Java is a trademark or registered trademark of Sun Microsystems, Inc.
25
* in the United States and other countries.]
30
* (C) Copyright 2004, by Thomas Morgner and Contributors.
32
* Original Author: Thomas Morgner;
33
* Contributor(s): David Gilbert (for Object Refinery Limited);
35
* $Id: RootEditor.java,v 1.4 2005/10/18 13:23:37 mungady Exp $
39
* 07-Jun-2004 : Added JCommon header (DG);
43
package org.jfree.ui.tabbedui;
45
import java.beans.PropertyChangeListener;
47
import javax.swing.JComponent;
48
import javax.swing.JMenu;
51
* A root editor reprensents a tab in a TabbedUI.
53
* @author Thomas Morgner
55
public interface RootEditor {
58
* Sets the editor active or inactive.
62
public void setActive(boolean b);
65
* Returns the active or inactive status of the editor.
69
public boolean isActive();
72
* Returns the editor name.
74
* @return The editor name.
76
public String getEditorName();
83
public JMenu[] getMenus();
86
* Returns the toolbar.
88
* @return The toolbar.
90
public JComponent getToolbar();
93
* Returns the main panel.
95
* @return The main panel.
97
public JComponent getMainPanel();
100
* Checks, whether this root editor is enabled.
102
* @return true, if the editor is enabled, false otherwise.
104
public boolean isEnabled();
107
* Adds a property change listener.
109
* @param property the property name.
110
* @param l the listener.
112
public void addPropertyChangeListener(String property, PropertyChangeListener l);
115
* Removes a property change listener.
117
* @param property the property name.
118
* @param l the listener.
120
public void removePropertyChangeListener(String property, PropertyChangeListener l);
123
* Adds a property change listener.
125
* @param l the listener.
127
public void addPropertyChangeListener(PropertyChangeListener l);
130
* Removes a property change listener.
132
* @param l the listener.
134
public void removePropertyChangeListener(PropertyChangeListener l);