Class RootPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, RootEditor

public abstract class RootPanel extends JComponent implements RootEditor
A root panel is a panel implementation of an root editor.
See Also:
  • Field Details

    • active

      private boolean active
      a flag indicating whether this editor is the currently active editor.
  • Constructor Details

    • RootPanel

      public RootPanel()
      Default constructor.
  • Method Details

    • 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.
    • 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.