Package com.formdev.flatlaf.ui
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
public class FlatRootPaneUI extends BasicRootPaneUI
Provides the Flat LaF UI delegate forJRootPane
.- 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 Classes Modifier and Type Class Description protected class
FlatRootPaneUI.FlatRootLayout
static class
FlatRootPaneUI.FlatWindowBorder
Window border used for non-native window decorations.
-
Field Summary
Fields Modifier and Type Field Description protected Color
borderColor
protected JRootPane
rootPane
protected static Integer
TITLE_PANE_LAYER
protected FlatTitlePane
titlePane
protected FlatWindowResizer
windowResizer
-
Constructor Summary
Constructors Constructor Description FlatRootPaneUI()
-
Method Summary
-
Methods inherited from class javax.swing.plaf.basic.BasicRootPaneUI
installComponents, installKeyboardActions, uninstallComponents, uninstallKeyboardActions
-
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, paint, update
-
-
-
-
Field Detail
-
borderColor
protected final Color borderColor
-
rootPane
protected JRootPane rootPane
-
titlePane
protected FlatTitlePane titlePane
-
windowResizer
protected FlatWindowResizer windowResizer
-
TITLE_PANE_LAYER
protected static final Integer TITLE_PANE_LAYER
-
-
Method Detail
-
createUI
public static ComponentUI createUI(JComponent c)
-
installUI
public void installUI(JComponent c)
- Overrides:
installUI
in classBasicRootPaneUI
-
installBorder
protected void installBorder()
-
uninstallUI
public void uninstallUI(JComponent c)
- Overrides:
uninstallUI
in classBasicRootPaneUI
-
installDefaults
protected void installDefaults(JRootPane c)
- Overrides:
installDefaults
in classBasicRootPaneUI
-
uninstallDefaults
protected void uninstallDefaults(JRootPane c)
- Overrides:
uninstallDefaults
in classBasicRootPaneUI
-
installListeners
protected void installListeners(JRootPane root)
- Overrides:
installListeners
in classBasicRootPaneUI
-
uninstallListeners
protected void uninstallListeners(JRootPane root)
- Overrides:
uninstallListeners
in classBasicRootPaneUI
-
installNativeWindowBorder
protected void installNativeWindowBorder()
- Since:
- 1.1.2
-
uninstallNativeWindowBorder
protected void uninstallNativeWindowBorder()
- Since:
- 1.1.2
-
updateNativeWindowBorder
public static void updateNativeWindowBorder(JRootPane rootPane)
- Since:
- 1.1.2
-
installClientDecorations
protected void installClientDecorations()
-
uninstallClientDecorations
protected void uninstallClientDecorations()
-
createRootLayout
protected FlatRootPaneUI.FlatRootLayout createRootLayout()
-
createWindowResizer
protected FlatWindowResizer createWindowResizer()
-
createTitlePane
protected FlatTitlePane createTitlePane()
-
setTitlePane
protected void setTitlePane(FlatTitlePane newTitlePane)
-
propertyChange
public void propertyChange(PropertyChangeEvent e)
- Specified by:
propertyChange
in interfacePropertyChangeListener
- Overrides:
propertyChange
in classBasicRootPaneUI
-
isMenuBarEmbedded
protected static boolean isMenuBarEmbedded(JRootPane rootPane)
-
getTitlePane
protected static FlatTitlePane getTitlePane(JRootPane rootPane)
- Since:
- 2.4
-
-