Class RadianceThemingCortex.RootPaneScope

java.lang.Object
org.pushingpixels.radiance.theming.api.RadianceThemingCortex.RootPaneScope
Enclosing class:
RadianceThemingCortex

public static final class RadianceThemingCortex.RootPaneScope extends Object
APIs in this scope apply to individual application JRootPanes.
  • Constructor Details

    • RootPaneScope

      public RootPaneScope()
  • Method Details

    • setSkin

      public static void setSkin(JRootPane rootPane, RadianceSkin skin)
      Specifies a skin to be used on the specific root pane. This will affect all the controls in that root pane. After calling this method, call SwingUtilities.updateComponentTreeUI(Component) on the matching window.
      Parameters:
      rootPane - Root pane.
      skin - Skin to use on all the controls in the root pane.
      See Also:
    • setContentsModified

      public static void setContentsModified(JRootPane rootPane, Boolean contentsModified)

      Specifies that contents of a root pane have been modified and not saved. The close button of the title pane of the matching frame / dialog will be animated (in case that the frame / dialog have decorated title pane). In case the root pane belongs to a JInternalFrame and that frame is iconified (to a JInternalFrame.JDesktopIcon), the close button of the its desktop icon is animated as well.

      The animation cycles between red, orange and yellow color schemes. The animation will be visible only when the mouse hovers over the close button of the matching container (frame, dialog, internal frame, desktop icon). The tooltip of the close button is changed as well to reflect that the container contents are marked as modified.

      Parameters:
      rootPane - Root pane.
      contentsModified - If true, the close button of the title pane of the matching frame / dialog will be animated.
      See Also:
    • setTitlePaneButtonsProvider

      public static void setTitlePaneButtonsProvider(JRootPane rootPane, TitlePaneButtonsProvider titlePaneButtonsProvider)