Class FlatMenuBarUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.MenuBarUI
javax.swing.plaf.basic.BasicMenuBarUI
com.formdev.flatlaf.ui.FlatMenuBarUI
- All Implemented Interfaces:
FlatStylingSupport.StyleableUI
Provides the Flat LaF UI delegate for
JMenuBar.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classprivate static classActivates the menu bar and shows mnemonics. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AtomicBooleanprotected Colorprotected Insetsprivate PropertyChangeListenerprotected intprotected Colorprotected Insetsprotected Colorprotected Insetsprotected Colorprotected Colorprotected intFields inherited from class BasicMenuBarUI
changeListener, containerListener, menuBar -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplyStyle(Object style) protected ObjectapplyStyleProperty(String key, Object value) static ComponentUIprotected ColorgetStyleableValue(JComponent c, String key) protected voidprotected voidprotected voidprotected voidvoidprotected voidprotected voidvoidupdate(Graphics g, JComponent c) (package private) static booleanMethods inherited from class BasicMenuBarUI
createChangeListener, createContainerListener, getMaximumSize, getMinimumSize, uninstallKeyboardActions, uninstallUIMethods inherited from class ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getPreferredSize, paint
-
Field Details
-
itemMargins
- Since:
- 2
-
selectionInsets
- Since:
- 3
-
selectionEmbeddedInsets
- Since:
- 3
-
selectionArc
protected int selectionArc- Since:
- 3
-
hoverBackground
- Since:
- 2
-
selectionBackground
- Since:
- 2.5
-
selectionForeground
- Since:
- 2.5
-
underlineSelectionBackground
- Since:
- 2
-
underlineSelectionColor
- Since:
- 2
-
underlineSelectionHeight
protected int underlineSelectionHeight- Since:
- 2
-
propertyChangeListener
-
oldStyleValues
-
-
Constructor Details
-
FlatMenuBarUI
public FlatMenuBarUI()
-
-
Method Details
-
createUI
-
installUI
- Overrides:
installUIin classBasicMenuBarUI
-
installDefaults
protected void installDefaults()- Overrides:
installDefaultsin classBasicMenuBarUI
-
uninstallDefaults
protected void uninstallDefaults()- Overrides:
uninstallDefaultsin classBasicMenuBarUI
-
installListeners
protected void installListeners()- Overrides:
installListenersin classBasicMenuBarUI
-
uninstallListeners
protected void uninstallListeners()- Overrides:
uninstallListenersin classBasicMenuBarUI
-
installKeyboardActions
protected void installKeyboardActions()- Overrides:
installKeyboardActionsin classBasicMenuBarUI
-
installStyle
protected void installStyle()- Since:
- 2
-
applyStyle
- Since:
- 2
-
applyStyleProperty
-
getStyleableInfos
- Specified by:
getStyleableInfosin interfaceFlatStylingSupport.StyleableUI- Since:
- 2
-
getStyleableValue
- Specified by:
getStyleableValuein interfaceFlatStylingSupport.StyleableUI- Since:
- 2.5
-
update
- Overrides:
updatein classComponentUI
-
getBackground
-
useUnifiedBackground
- Since:
- 2
-