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
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.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update
-
Field Details
-
popupMenu
The instance ofJPopupMenu
.
-
-
Constructor Details
-
BasicPopupMenuUI
public BasicPopupMenuUI()Constructs a new instance ofBasicPopupMenuUI
.
-
-
Method Details
-
createUI
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.
-