Provides the ready api look and feel implementation of RootPaneUI
.
ReadyApiRootPaneUI
provides support for the
windowDecorationStyle
property of JRootPane
.
ReadyApiRootPaneUI
does this by way of installing a custom
LayoutManager
, a private Component
to render
the appropriate widgets, and a private Border
. The
LayoutManager
is always installed, regardless of the value of
the windowDecorationStyle
property, but the
Border
and Component
are only installed/added if
the windowDecorationStyle
is other than
JRootPane.NONE
.
Based on {javax.swing.plaf.metal.MetalRootPaneUI}
Constructor and description |
---|
ReadyApiRootPaneUI
() Constructs a ReadyApiRootPaneUI . |
Type Params | Return Type | Name and description |
---|---|---|
|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c) Creates a UI for a JRootPane . |
|
void |
installUI(javax.swing.JComponent c) Invokes supers implementation of installUI to install
the necessary state onto the passed in JRootPane
to render the ReadyApi look and feel implementation of
RootPaneUI . |
|
void |
propertyChange(java.beans.PropertyChangeEvent e) Invoked when a property changes. |
|
void |
uninstallUI(javax.swing.JComponent c) Invokes supers implementation to uninstall any of its state. |
Methods inherited from class | Name |
---|---|
class javax.swing.plaf.basic.BasicRootPaneUI |
javax.swing.plaf.basic.BasicRootPaneUI#installUI(javax.swing.JComponent), javax.swing.plaf.basic.BasicRootPaneUI#uninstallUI(javax.swing.JComponent), javax.swing.plaf.basic.BasicRootPaneUI#propertyChange(java.beans.PropertyChangeEvent), javax.swing.plaf.basic.BasicRootPaneUI#createUI(javax.swing.JComponent), javax.swing.plaf.basic.BasicRootPaneUI#update(java.awt.Graphics, javax.swing.JComponent), javax.swing.plaf.basic.BasicRootPaneUI#contains(javax.swing.JComponent, int, int), javax.swing.plaf.basic.BasicRootPaneUI#paint(java.awt.Graphics, javax.swing.JComponent), javax.swing.plaf.basic.BasicRootPaneUI#getPreferredSize(javax.swing.JComponent), javax.swing.plaf.basic.BasicRootPaneUI#getMaximumSize(javax.swing.JComponent), javax.swing.plaf.basic.BasicRootPaneUI#getMinimumSize(javax.swing.JComponent), javax.swing.plaf.basic.BasicRootPaneUI#getBaseline(javax.swing.JComponent, int, int), javax.swing.plaf.basic.BasicRootPaneUI#getBaselineResizeBehavior(javax.swing.JComponent), javax.swing.plaf.basic.BasicRootPaneUI#getAccessibleChildrenCount(javax.swing.JComponent), javax.swing.plaf.basic.BasicRootPaneUI#getAccessibleChild(javax.swing.JComponent, int), javax.swing.plaf.basic.BasicRootPaneUI#wait(long), javax.swing.plaf.basic.BasicRootPaneUI#wait(long, int), javax.swing.plaf.basic.BasicRootPaneUI#wait(), javax.swing.plaf.basic.BasicRootPaneUI#equals(java.lang.Object), javax.swing.plaf.basic.BasicRootPaneUI#toString(), javax.swing.plaf.basic.BasicRootPaneUI#hashCode(), javax.swing.plaf.basic.BasicRootPaneUI#getClass(), javax.swing.plaf.basic.BasicRootPaneUI#notify(), javax.swing.plaf.basic.BasicRootPaneUI#notifyAll() |
class javax.swing.plaf.RootPaneUI |
javax.swing.plaf.RootPaneUI#update(java.awt.Graphics, javax.swing.JComponent), javax.swing.plaf.RootPaneUI#contains(javax.swing.JComponent, int, int), javax.swing.plaf.RootPaneUI#installUI(javax.swing.JComponent), javax.swing.plaf.RootPaneUI#paint(java.awt.Graphics, javax.swing.JComponent), javax.swing.plaf.RootPaneUI#getPreferredSize(javax.swing.JComponent), javax.swing.plaf.RootPaneUI#getMaximumSize(javax.swing.JComponent), javax.swing.plaf.RootPaneUI#getMinimumSize(javax.swing.JComponent), javax.swing.plaf.RootPaneUI#getBaseline(javax.swing.JComponent, int, int), javax.swing.plaf.RootPaneUI#getBaselineResizeBehavior(javax.swing.JComponent), javax.swing.plaf.RootPaneUI#uninstallUI(javax.swing.JComponent), javax.swing.plaf.RootPaneUI#getAccessibleChildrenCount(javax.swing.JComponent), javax.swing.plaf.RootPaneUI#getAccessibleChild(javax.swing.JComponent, int), javax.swing.plaf.RootPaneUI#createUI(javax.swing.JComponent), javax.swing.plaf.RootPaneUI#wait(long), javax.swing.plaf.RootPaneUI#wait(long, int), javax.swing.plaf.RootPaneUI#wait(), javax.swing.plaf.RootPaneUI#equals(java.lang.Object), javax.swing.plaf.RootPaneUI#toString(), javax.swing.plaf.RootPaneUI#hashCode(), javax.swing.plaf.RootPaneUI#getClass(), javax.swing.plaf.RootPaneUI#notify(), javax.swing.plaf.RootPaneUI#notifyAll() |
Creates a UI for a JRootPane
.
c
- the JRootPane the RootPaneUI will be created for Invokes supers implementation of installUI
to install
the necessary state onto the passed in JRootPane
to render the ReadyApi 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
.
c
- the JRootPane to install state onto Invoked when a property changes. ReadyApiRootPaneUI
is
primarily interested in events originating from the
JRootPane
it has been installed on identifying the
property windowDecorationStyle
. If the
windowDecorationStyle
has changed to a value other
than JRootPane.NONE
, this will add a Component
to the JRootPane
to render the window decorations, as well
as installing a Border
on the JRootPane
.
On the other hand, if the windowDecorationStyle
has
changed to JRootPane.NONE
, this will remove the
Component
that has been added to the JRootPane
as well resetting the Border to what it was before
installUI
was invoked.
e
- A PropertyChangeEvent object describing the event source
and the property that has changed. Invokes supers implementation to uninstall any of its state. This will
also reset the 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.
c
- the JRootPane to uninstall state fromReadyAPI functional (soapui) SDK 3.20.1