org.jfree.ui.tabbedui

Interface RootEditor

Known Implementing Classes:
RootPanel

public interface RootEditor

A root editor reprensents a tab in a TabbedUI.
Author:
Thomas Morgner

Method Summary

void
addPropertyChangeListener(PropertyChangeListener l)
Adds a property change listener.
void
addPropertyChangeListener(String property, PropertyChangeListener l)
Adds a property change listener.
String
getEditorName()
Returns the editor name.
JComponent
getMainPanel()
Returns the main panel.
JMenu[]
getMenus()
Returns the menus.
JComponent
getToolbar()
Returns the toolbar.
boolean
isActive()
Returns the active or inactive status of the editor.
boolean
isEnabled()
Checks, whether this root editor is enabled.
void
removePropertyChangeListener(PropertyChangeListener l)
Removes a property change listener.
void
removePropertyChangeListener(String property, PropertyChangeListener l)
Removes a property change listener.
void
setActive(boolean b)
Sets the editor active or inactive.

Method Details

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener l)
Adds a property change listener.
Parameters:
l - the listener.

addPropertyChangeListener

public void addPropertyChangeListener(String property,
                                      PropertyChangeListener l)
Adds a property change listener.
Parameters:
property - the property name.
l - the listener.

getEditorName

public String getEditorName()
Returns the editor name.
Returns:
The editor name.

getMainPanel

public JComponent getMainPanel()
Returns the main panel.
Returns:
The main panel.

getMenus

public JMenu[] getMenus()
Returns the menus.
Returns:
The menus.

getToolbar

public JComponent getToolbar()
Returns the toolbar.
Returns:
The toolbar.

isActive

public boolean isActive()
Returns the active or inactive status of the editor.
Returns:
A boolean.

isEnabled

public boolean isEnabled()
Checks, whether this root editor is enabled.
Returns:
true, if the editor is enabled, false otherwise.

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener l)
Removes a property change listener.
Parameters:
l - the listener.

removePropertyChangeListener

public void removePropertyChangeListener(String property,
                                         PropertyChangeListener l)
Removes a property change listener.
Parameters:
property - the property name.
l - the listener.

setActive

public void setActive(boolean b)
Sets the editor active or inactive.
Parameters:
b - a boolean.