PropertyChangeListener, EventListenerpublic class SubstanceRootPaneUI extends BasicRootPaneUI
| Modifier and Type | Class | Description |
|---|---|---|
protected class |
SubstanceRootPaneUI.SubstanceRootLayout |
A custom layout manager that is responsible for the layout of
layeredPane, glassPane, menuBar and titlePane, if one has been installed.
|
| Modifier and Type | Field | Description |
|---|---|---|
protected GraphicsConfiguration |
currentRootPaneGC |
The graphics configuration that contains the top-left corner of the
window (fix for defect 213).
|
protected JRootPane |
root |
JRootPane providing the look and feel for. |
protected Window |
substanceCurrentWindow |
The current window.
|
protected HierarchyListener |
substanceHierarchyListener |
Hierarchy listener to keep track of the associated top-level window.
|
protected PropertyChangeListener |
substancePropertyChangeListener |
|
protected ComponentListener |
substanceWindowComponentListener |
Component listener to keep track of the primary graphics configuration
(for recomputing the maximized bounds) - fix for defect 213.
|
protected WindowListener |
substanceWindowListener |
Window listener that stops all Substance thread when the last frame is
disposed.
|
static ComponentListener |
WINDOW_ROUNDER |
| Constructor | Description |
|---|---|
SubstanceRootPaneUI() |
| Modifier and Type | Method | Description |
|---|---|---|
protected LayoutManager |
createLayoutManager() |
Returns a
LayoutManager that will be set on the
JRootPane. |
protected JComponent |
createTitlePane(JRootPane root) |
Returns the
JComponent to render the window decoration
style. |
static ComponentUI |
createUI(JComponent comp) |
Creates a UI for a
JRootPane. |
protected JRootPane |
getRootPane() |
Returns the
JRootPane we're providing the look and feel for. |
JComponent |
getTitlePane() |
Returns the
JComponent rendering the title pane. |
static boolean |
hasCustomSkinOnAtLeastOneRootPane() |
|
void |
installBorder(JRootPane root) |
Installs the appropriate
Border onto the
JRootPane. |
protected void |
installDefaults(JRootPane c) |
|
protected void |
installListeners(JRootPane root) |
|
void |
installUI(JComponent c) |
Invokes supers implementation of
installUI to install the
necessary state onto the passed in JRootPane to render the
metal look and feel implementation of RootPaneUI. |
void |
propertyChange(PropertyChangeEvent e) |
|
void |
setMaximized() |
Sets maximized bounds according to the display screen insets.
|
protected void |
uninstallListeners(JRootPane root) |
|
void |
uninstallUI(JComponent c) |
Invokes supers implementation to uninstall any of its state.
|
void |
update(Graphics g,
JComponent c) |
installComponents, installKeyboardActions, uninstallComponents, uninstallDefaults, uninstallKeyboardActionscontains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, paintprotected JRootPane root
JRootPane providing the look and feel for.protected WindowListener substanceWindowListener
protected Window substanceCurrentWindow
protected HierarchyListener substanceHierarchyListener
protected ComponentListener substanceWindowComponentListener
protected GraphicsConfiguration currentRootPaneGC
protected PropertyChangeListener substancePropertyChangeListener
public static ComponentListener WINDOW_ROUNDER
public static ComponentUI createUI(JComponent comp)
JRootPane.comp - the JRootPane the RootPaneUI will be created forpublic void installUI(JComponent c)
installUI to install the
necessary state onto the passed in JRootPane to render the
metal look and feel implementation of RootPaneUI. If the
windowDecorationStyle property of the JRootPane
is other than JRootPane.NONE, this will add a custom
Component to render the widgets to JRootPane,
as well as installing a custom Border and
LayoutManager on the JRootPane.installUI in class BasicRootPaneUIc - the JRootPane to install state ontopublic void uninstallUI(JComponent c)
LayoutManager of the JRootPane.
If a Component has been added to the JRootPane
to render the window decoration style, this method will remove it.
Similarly, this will revert the Border and LayoutManager of the
JRootPane to what it was before installUI was
invoked.uninstallUI in class BasicRootPaneUIc - the JRootPane to uninstall state frompublic void installBorder(JRootPane root)
Border onto the
JRootPane.root - Root pane.protected void installDefaults(JRootPane c)
installDefaults in class BasicRootPaneUIpublic void update(Graphics g, JComponent c)
update in class ComponentUIprotected void installListeners(JRootPane root)
installListeners in class BasicRootPaneUIprotected void uninstallListeners(JRootPane root)
uninstallListeners in class BasicRootPaneUIprotected JComponent createTitlePane(JRootPane root)
JComponent to render the window decoration
style.root - Root pane.protected LayoutManager createLayoutManager()
LayoutManager that will be set on the
JRootPane.public void setMaximized()
public JComponent getTitlePane()
JComponent rendering the title pane. If this
returns null, it implies there is no need to render window decorations.
This method is for internal use only.setTitlePane(javax.swing.JRootPane, javax.swing.JComponent)protected JRootPane getRootPane()
JRootPane we're providing the look and feel for.public void propertyChange(PropertyChangeEvent e)
propertyChange in interface PropertyChangeListenerpropertyChange in class BasicRootPaneUIpublic static boolean hasCustomSkinOnAtLeastOneRootPane()