public static final class SubstanceCortex.RootPaneScope
extends java.lang.Object
JRootPanes.| Constructor | Description |
|---|---|
RootPaneScope() |
| Modifier and Type | Method | Description |
|---|---|---|
static void |
setContentsModified(javax.swing.JRootPane rootPane,
java.lang.Boolean contentsModified) |
Specifies that contents of a root pane have been modified and not saved.
|
static void |
setSkin(javax.swing.JRootPane rootPane,
SubstanceSkin skin) |
Specifies a skin to be used on the specific root pane.
|
public static void setSkin(javax.swing.JRootPane rootPane,
SubstanceSkin skin)
SwingUtilities.updateComponentTreeUI(Component) on the matching window.rootPane - Root pane.skin - Skin to use on all the controls in the root pane.SubstanceCortex.GlobalScope.setSkin(String),
SubstanceCortex.GlobalScope.setSkin(SubstanceSkin)public static void setContentsModified(javax.swing.JRootPane rootPane,
java.lang.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.
rootPane - Root pane.contentsModified - If true, the close button of the title
pane of the
matching frame / dialog will be animated.SubstanceCortex.ComponentScope.setTabContentsModified(JComponent, Boolean)