Class RadianceThemingCortex.RootPaneScope
java.lang.Object
org.pushingpixels.radiance.theming.api.RadianceThemingCortex.RootPaneScope
- Enclosing class:
RadianceThemingCortex
APIs in this scope apply to individual application
JRootPane
s.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
setContentsModified
(JRootPane rootPane, Boolean contentsModified) Specifies that contents of a root pane have been modified and not saved.static void
setSkin
(JRootPane rootPane, RadianceSkin skin) Specifies a skin to be used on the specific root pane.static void
setTitlePaneButtonsProvider
(JRootPane rootPane, TitlePaneButtonsProvider titlePaneButtonsProvider)
-
Constructor Details
-
RootPaneScope
public RootPaneScope()
-
-
Method Details
-
setSkin
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, callSwingUtilities.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
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 aJInternalFrame.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
- Iftrue
, 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)
-