Interface DecorationsProvider


public interface DecorationsProvider
  • Method Details

    • createTitlePane

      CustomTitlePane createTitlePane(JRootPane rootPane, int decorationStyle, Window window)
      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

      void loadDecorationProperties(Properties properties, UIDefaults currentDefaults)
      Load the necessary properties into the defaults.
      Parameters:
      properties - the properties to load the values into.
      currentDefaults - the current ui defaults.
    • installPopupWindow

      default void installPopupWindow(Window window)
      Initialize the window of a popup menu.
    • uninstallPopupWindow

      default void uninstallPopupWindow(Window window)
      Uninstall the window of a popup menu.
    • adjustContentArea

      default void adjustContentArea(JRootPane root, Rectangle rect)
      Adjusts the content area.
      Parameters:
      root - the corresponding root pane.
      rect - the proposed content area.
    • adjustWindowInsets

      default void adjustWindowInsets(Window window, Insets i)
      Adjust the window insets.
      Parameters:
      window - the corresponding window.
      i - the insets to adjust.