public interface DecorationsProvider
| Modifier and Type | Method and Description |
|---|---|
default void |
adjustContentArea(JRootPane root,
Rectangle rect)
Adjusts the content area.
|
default void |
adjustWindowInsets(Window window,
Insets i)
Adjust the window insets.
|
CustomTitlePane |
createTitlePane(JRootPane rootPane,
int decorationStyle,
Window window)
Create the custom title pane.
|
void |
initialize()
Initialize all necessary resources.
|
default void |
installPopupWindow(Window window)
Initialize the window of a popup menu.
|
boolean |
isCustomDecorationSupported()
Returns whether custom decorations are supported.
|
void |
loadDecorationProperties(Properties properties,
UIDefaults currentDefaults)
Load the necessary properties into the defaults.
|
default void |
uninstallPopupWindow(Window window)
Uninstall the window of a popup menu.
|
CustomTitlePane createTitlePane(JRootPane rootPane, int decorationStyle, Window window)
rootPane - The root pane to create the title pane for.decorationStyle - The style of the decorations.window - The target window.JRootPane.getWindowDecorationStyle()boolean isCustomDecorationSupported()
void initialize()
void loadDecorationProperties(Properties properties, UIDefaults currentDefaults)
properties - the properties to load the values into.currentDefaults - the current ui defaults.default void installPopupWindow(Window window)
default void uninstallPopupWindow(Window window)
default void adjustContentArea(JRootPane root, Rectangle rect)
root - the corresponding root pane.rect - the proposed content area.