org.jfree.ui.tabbedui

Class RootPanel

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
JComponentgetMainPanel()
Returns the main panel.
JComponentgetToolbar()
Returns the toolbar.
booleanisActive()
Returns a flag that indicates whether the panel is active or not.
protected voidpanelActivated()
Called when the panel is activated.
protected voidpanelDeactivated()
Called when the panel is deactivated.
voidsetActive(boolean active)
Sets the status of the panel to active or inactive.

Constructor Detail

RootPanel

public RootPanel()
Default constructor.

Method Detail

getMainPanel

public JComponent getMainPanel()
Returns the main panel. Returns the self reference, as this panel implements all necessary methods.

Returns: The main panel.

getToolbar

public JComponent getToolbar()
Returns the toolbar. This default implementation return null, to indicate that no toolbar is used.

Returns: The toolbar.

isActive

public final boolean isActive()
Returns a flag that indicates whether the panel is active or not.

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.

Parameters: active the flag.