Class RootPanel

    • Constructor Detail

      • RootPanel

        public RootPanel()
        Default constructor.
    • Method Detail

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