Class FlatRootPaneUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.RootPaneUI
javax.swing.plaf.basic.BasicRootPaneUI
com.formdev.flatlaf.ui.FlatRootPaneUI
- All Implemented Interfaces:
PropertyChangeListener, EventListener
Provides the Flat LaF UI delegate for
JRootPane.
- UiDefault:
- RootPane.border Border, RootPane.activeBorderColor Color, RootPane.inactiveBorderColor Color, TitlePane.borderColor Color optional , RootPane.font Font unused, RootPane.background Color, RootPane.foreground Color unused, RootPane.borderDragThickness int, RootPane.cornerDragWidth int, RootPane.honorFrameMinimumSizeOnResize boolean, RootPane.honorDialogMinimumSizeOnResize boolean
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classstatic classWindow border used for non-native window decorations. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Colorprotected JRootPaneprotected static final Integerprotected static final Integerprotected FlatTitlePaneprotected FlatWindowResizer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected FlatRootPaneUI.FlatRootLayoutprotected FlatTitlePanestatic ComponentUIprotected FlatWindowResizerprotected static FlatTitlePanegetTitlePane(JRootPane rootPane) protected voidprotected voidprotected voidprotected voidinstallListeners(JRootPane root) protected voidvoidprotected static booleanisFullWindowContent(JRootPane rootPane) protected static booleanisMenuBarEmbedded(JRootPane rootPane) voidprotected voidsetTitlePane(FlatTitlePane newTitlePane) protected voidprotected voidprotected voiduninstallListeners(JRootPane root) protected voidvoidstatic voidupdateNativeWindowBorder(JRootPane rootPane) Methods inherited from class BasicRootPaneUI
installComponents, installKeyboardActions, uninstallComponents, uninstallKeyboardActionsMethods inherited from class ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, paint, update
-
Field Details
-
borderColor
-
rootPane
-
titlePane
-
windowResizer
-
TITLE_PANE_LAYER
-
TITLE_PANE_FULL_WINDOW_CONTENT_LAYER
- Since:
- 3.4
-
-
Constructor Details
-
FlatRootPaneUI
public FlatRootPaneUI()
-
-
Method Details
-
createUI
-
installUI
- Overrides:
installUIin classBasicRootPaneUI
-
installBorder
protected void installBorder() -
uninstallUI
- Overrides:
uninstallUIin classBasicRootPaneUI
-
installDefaults
- Overrides:
installDefaultsin classBasicRootPaneUI
-
uninstallDefaults
- Overrides:
uninstallDefaultsin classBasicRootPaneUI
-
installListeners
- Overrides:
installListenersin classBasicRootPaneUI
-
uninstallListeners
- Overrides:
uninstallListenersin classBasicRootPaneUI
-
installNativeWindowBorder
protected void installNativeWindowBorder()- Since:
- 1.1.2
-
uninstallNativeWindowBorder
protected void uninstallNativeWindowBorder()- Since:
- 1.1.2
-
updateNativeWindowBorder
- Since:
- 1.1.2
-
installClientDecorations
protected void installClientDecorations() -
uninstallClientDecorations
protected void uninstallClientDecorations() -
createRootLayout
-
createWindowResizer
-
createTitlePane
-
setTitlePane
-
propertyChange
- Specified by:
propertyChangein interfacePropertyChangeListener- Overrides:
propertyChangein classBasicRootPaneUI
-
isFullWindowContent
- Since:
- 3.4
-
isMenuBarEmbedded
-
getTitlePane
- Since:
- 2.4
-