Interface DecorationsProvider
public interface DecorationsProvider
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidadjustContentArea(JRootPane root, Rectangle rect)Adjusts the content area.default voidadjustWindowInsets(Window window, Insets i)Adjust the window insets.createTitlePane(JRootPane rootPane, int decorationStyle, Window window)Create the custom title pane.voidInitialize all necessary resources.default voidinstallPopupWindow(Window window)Initialize the window of a popup menu.booleanReturns whether custom decorations are supported.voidloadDecorationProperties(Properties properties, UIDefaults currentDefaults)Load the necessary properties into the defaults.default voiduninstallPopupWindow(Window window)Uninstall the window of a popup menu.
-
Method Details
-
createTitlePane
Create the custom title pane.- Parameters:
rootPane- The root pane to create the title pane for.decorationStyle- The style of the decorations.window- The target window.- Returns:
- the custom title pane.
- See Also:
JRootPane.getWindowDecorationStyle()
-
isCustomDecorationSupported
boolean isCustomDecorationSupported()Returns whether custom decorations are supported.- Returns:
- true if decorations are supported.
-
initialize
void initialize()Initialize all necessary resources. -
loadDecorationProperties
Load the necessary properties into the defaults.- Parameters:
properties- the properties to load the values into.currentDefaults- the current ui defaults.
-
installPopupWindow
Initialize the window of a popup menu. -
uninstallPopupWindow
Uninstall the window of a popup menu. -
adjustContentArea
Adjusts the content area.- Parameters:
root- the corresponding root pane.rect- the proposed content area.
-
adjustWindowInsets
Adjust the window insets.- Parameters:
window- the corresponding window.i- the insets to adjust.
-