Interface DecorationsProvider
public interface DecorationsProvider
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidadjustContentArea(JRootPane root, Rectangle rect) Adjusts the content area.createTitlePane(JRootPane rootPane, int decorationStyle, Window window) Create the custom title pane.Returns the path to the decoration properties.voidInitialize all necessary resources.default voidinstallPopupWindow(Window window) Initialize the window of a popup menu.booleanReturns whether custom decorations are supported.default booleanReturns whether the system provides a title label for us.titlePaneLayoutInfo(CustomTitlePane customTitlePane) Compute the layout information for the title pane.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:
-
isCustomDecorationSupported
boolean isCustomDecorationSupported()Returns whether custom decorations are supported.- Returns:
- true if decorations are supported.
-
initialize
void initialize()Initialize all necessary resources. -
getPropertyResourcePaths
Returns the path to the decoration properties.- Returns:
- path to load a resources from.
-
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.
-
supportsNativeTitleLabel
default boolean supportsNativeTitleLabel()Returns whether the system provides a title label for us.- Returns:
- true of the system paints the title label.
-
titlePaneLayoutInfo
Compute the layout information for the title pane.- Parameters:
customTitlePane- the given title pane- Returns:
- information about the layout of the title pane
-