Package com.formdev.flatlaf.ui
Class FlatPopupMenuUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.PopupMenuUI
-
- javax.swing.plaf.basic.BasicPopupMenuUI
-
- com.formdev.flatlaf.ui.FlatPopupMenuUI
-
- All Implemented Interfaces:
FlatStylingSupport.StyleableUI
public class FlatPopupMenuUI extends BasicPopupMenuUI implements FlatStylingSupport.StyleableUI
Provides the Flat LaF UI delegate forJPopupMenu.- UiDefault:
- PopupMenu.font Font, PopupMenu.background Color, PopupMenu.foreground Color, PopupMenu.border Border , Component.arrowType String chevron (default) or triangle, PopupMenu.scrollArrowColor Color, PopupMenu.hoverScrollArrowBackground Color optional
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classFlatPopupMenuUI.FlatPopupMenuLayout
-
Field Summary
Fields Modifier and Type Field Description protected StringarrowTypeprotected ColorhoverScrollArrowBackgroundprotected ColorscrollArrowColor-
Fields inherited from class javax.swing.plaf.basic.BasicPopupMenuUI
popupMenu
-
-
Constructor Summary
Constructors Constructor Description FlatPopupMenuUI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidapplyStyle(Object style)protected ObjectapplyStyleProperty(String key, Object value)static ComponentUIcreateUI(JComponent c)PopupgetPopup(JPopupMenu popup, int x, int y)Map<String,Class<?>>getStyleableInfos(JComponent c)ObjectgetStyleableValue(JComponent c, String key)voidinstallDefaults()protected voidinstallListeners()protected voidinstallStyle()voidinstallUI(JComponent c)protected voiduninstallDefaults()protected voiduninstallListeners()voiduninstallUI(JComponent c)-
Methods inherited from class javax.swing.plaf.basic.BasicPopupMenuUI
installKeyboardActions, isPopupTrigger, uninstallKeyboardActions
-
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, paint, update
-
-
-
-
Method Detail
-
createUI
public static ComponentUI createUI(JComponent c)
-
installUI
public void installUI(JComponent c)
- Overrides:
installUIin classBasicPopupMenuUI
-
uninstallUI
public void uninstallUI(JComponent c)
- Overrides:
uninstallUIin classBasicPopupMenuUI
-
installDefaults
public void installDefaults()
- Overrides:
installDefaultsin classBasicPopupMenuUI
-
uninstallDefaults
protected void uninstallDefaults()
- Overrides:
uninstallDefaultsin classBasicPopupMenuUI
-
installListeners
protected void installListeners()
- Overrides:
installListenersin classBasicPopupMenuUI
-
uninstallListeners
protected void uninstallListeners()
- Overrides:
uninstallListenersin classBasicPopupMenuUI
-
installStyle
protected void installStyle()
- Since:
- 2
-
applyStyle
protected void applyStyle(Object style)
- Since:
- 2
-
getStyleableInfos
public Map<String,Class<?>> getStyleableInfos(JComponent c)
- Specified by:
getStyleableInfosin interfaceFlatStylingSupport.StyleableUI- Since:
- 2
-
getStyleableValue
public Object getStyleableValue(JComponent c, String key)
- Specified by:
getStyleableValuein interfaceFlatStylingSupport.StyleableUI- Since:
- 2.5
-
getPopup
public Popup getPopup(JPopupMenu popup, int x, int y)
- Overrides:
getPopupin classPopupMenuUI
-
-