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 class
FlatPopupMenuUI.FlatPopupMenuLayout
-
Field Summary
Fields Modifier and Type Field Description protected String
arrowType
protected Color
hoverScrollArrowBackground
protected Color
scrollArrowColor
-
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 void
applyStyle(Object style)
protected Object
applyStyleProperty(String key, Object value)
static ComponentUI
createUI(JComponent c)
Popup
getPopup(JPopupMenu popup, int x, int y)
Map<String,Class<?>>
getStyleableInfos(JComponent c)
Object
getStyleableValue(JComponent c, String key)
void
installDefaults()
protected void
installListeners()
protected void
installStyle()
void
installUI(JComponent c)
protected void
uninstallDefaults()
protected void
uninstallListeners()
void
uninstallUI(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:
installUI
in classBasicPopupMenuUI
-
uninstallUI
public void uninstallUI(JComponent c)
- Overrides:
uninstallUI
in classBasicPopupMenuUI
-
installDefaults
public void installDefaults()
- Overrides:
installDefaults
in classBasicPopupMenuUI
-
uninstallDefaults
protected void uninstallDefaults()
- Overrides:
uninstallDefaults
in classBasicPopupMenuUI
-
installListeners
protected void installListeners()
- Overrides:
installListeners
in classBasicPopupMenuUI
-
uninstallListeners
protected void uninstallListeners()
- Overrides:
uninstallListeners
in 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:
getStyleableInfos
in interfaceFlatStylingSupport.StyleableUI
- Since:
- 2
-
getStyleableValue
public Object getStyleableValue(JComponent c, String key)
- Specified by:
getStyleableValue
in interfaceFlatStylingSupport.StyleableUI
- Since:
- 2.5
-
getPopup
public Popup getPopup(JPopupMenu popup, int x, int y)
- Overrides:
getPopup
in classPopupMenuUI
-
-