- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.PopupMenuUI
-
- javax.swing.plaf.basic.BasicPopupMenuUI
-
- Direct Known Subclasses:
SynthPopupMenuUI
public class BasicPopupMenuUI extends PopupMenuUI
A Windows L&F implementation of PopupMenuUI. This implementation is a "combined" view/controller.
-
-
Field Summary
Fields Modifier and Type Field Description protected JPopupMenu
popupMenu
The instance ofJPopupMenu
.
-
Constructor Summary
Constructors Constructor Description BasicPopupMenuUI()
Constructs a new instance ofBasicPopupMenuUI
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ComponentUI
createUI(JComponent x)
Constructs a new instance ofBasicPopupMenuUI
.void
installDefaults()
Installs default properties.protected void
installKeyboardActions()
Registers keyboard actions.protected void
installListeners()
Registers listeners.protected void
uninstallDefaults()
Uninstalls default properties.protected void
uninstallKeyboardActions()
Unregisters keyboard actions.protected void
uninstallListeners()
Unregisters listeners.-
Methods declared in class javax.swing.plaf.PopupMenuUI
getPopup, isPopupTrigger
-
Methods declared in class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update
-
-
-
-
Field Detail
-
popupMenu
protected JPopupMenu popupMenu
The instance ofJPopupMenu
.
-
-
Method Detail
-
createUI
public static ComponentUI createUI(JComponent x)
Constructs a new instance ofBasicPopupMenuUI
.- Parameters:
x
- a component- Returns:
- a new instance of
BasicPopupMenuUI
-
installDefaults
public void installDefaults()
Installs default properties.
-
installListeners
protected void installListeners()
Registers listeners.
-
installKeyboardActions
protected void installKeyboardActions()
Registers keyboard actions.
-
uninstallDefaults
protected void uninstallDefaults()
Uninstalls default properties.
-
uninstallListeners
protected void uninstallListeners()
Unregisters listeners.
-
uninstallKeyboardActions
protected void uninstallKeyboardActions()
Unregisters keyboard actions.
-
-