public class MetalRootPaneUI extends BasicRootPaneUI
JRootPane component. This implementation
supports the JRootPane windowDecorationStyle property.| Constructor and Description |
|---|
MetalRootPaneUI()
Constructs a shared instance of
MetalRootPaneUI. |
| Modifier and Type | Method and Description |
|---|---|
static ComponentUI |
createUI(JComponent component)
Returns a shared instance of
MetalRootPaneUI. |
void |
installUI(JComponent c)
Installs this UI to the root pane.
|
void |
propertyChange(PropertyChangeEvent ev)
Receives notification if any of the JRootPane's property changes.
|
void |
uninstallUI(JComponent c)
Uninstalls the UI from the root pane.
|
installComponents, installDefaults, installKeyboardActions, installListeners, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListenerscontains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, paint, updatepublic MetalRootPaneUI()
MetalRootPaneUI.public static ComponentUI createUI(JComponent component)
MetalRootPaneUI.component - the component for which we return an UI instanceMetalRootPaneUI.public void installUI(JComponent c)
windowDecorationsStyle property is set on the root pane,
the Metal window decorations are installed on the root pane.installUI in class BasicRootPaneUIc - ComponentUI.uninstallUI(javax.swing.JComponent),
JComponent.setUI(javax.swing.plaf.ComponentUI),
JComponent.updateUI()public void uninstallUI(JComponent c)
installUI(javax.swing.JComponent).uninstallUI in class BasicRootPaneUIc - the root paneComponentUI.installUI(javax.swing.JComponent),
JComponent.setUI(javax.swing.plaf.ComponentUI),
JComponent.updateUI()public void propertyChange(PropertyChangeEvent ev)
windowDecorationStyle
property and installs the window decorations accordingly.propertyChange in interface PropertyChangeListenerpropertyChange in class BasicRootPaneUIev - the property change event