org.jfree.ui.tabbedui

Class RootPanel

Implemented Interfaces:
RootEditor

public abstract class RootPanel
extends JComponent
implements RootEditor

A root panel is a panel implementation of an root editor.
Author:
Thomas Morgner

Constructor Summary

RootPanel()
Default constructor.

Method Summary

JComponent
getMainPanel()
Returns the main panel.
JComponent
getToolbar()
Returns the toolbar.
boolean
isActive()
Returns a flag that indicates whether the panel is active or not.
protected void
panelActivated()
Called when the panel is activated.
protected void
panelDeactivated()
Called when the panel is deactivated.
void
setActive(boolean active)
Sets the status of the panel to active or inactive.

Constructor Details

RootPanel

public RootPanel()
Default constructor.

Method Details

getMainPanel

public JComponent getMainPanel()
Returns the main panel. Returns the self reference, as this panel implements all necessary methods.
Specified by:
getMainPanel in interface RootEditor
Returns:
The main panel.

getToolbar

public JComponent getToolbar()
Returns the toolbar. This default implementation return null, to indicate that no toolbar is used.
Specified by:
getToolbar in interface RootEditor
Returns:
The toolbar.

isActive

public final boolean isActive()
Returns a flag that indicates whether the panel is active or not.
Specified by:
isActive in interface RootEditor
Returns:
A flag.

panelActivated

protected void panelActivated()
Called when the panel is activated.

panelDeactivated

protected void panelDeactivated()
Called when the panel is deactivated.

setActive

public final void setActive(boolean active)
Sets the status of the panel to active or inactive.
Specified by:
setActive in interface RootEditor
Parameters:
active - the flag.