public class BasicPopupMenuUI extends javax.swing.plaf.PopupMenuUI
| Modifier and Type | Field and Description |
|---|---|
protected javax.swing.JPopupMenu |
popupMenu |
| Constructor and Description |
|---|
BasicPopupMenuUI()
Creates a new BasicPopupMenuUI object.
|
| Modifier and Type | Method and Description |
|---|---|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent x)
Factory method to create a BasicPopupMenuUI for the given
JComponent, which should be a JMenuItem. |
java.awt.Dimension |
getMaximumSize(javax.swing.JComponent c)
This method returns the minimum size of the JPopupMenu.
|
java.awt.Dimension |
getMinimumSize(javax.swing.JComponent c)
This method returns the minimum size of the JPopupMenu.
|
java.awt.Dimension |
getPreferredSize(javax.swing.JComponent c)
This method returns the preferred size of the JPopupMenu.
|
void |
installDefaults()
This method installs the defaults that are defined in the Basic look
and feel for this
JPopupMenu. |
protected void |
installKeyboardActions()
This method installs the keyboard actions for this
JPopupMenu. |
protected void |
installListeners()
This method installs the listeners for the
JMenuItem. |
void |
installUI(javax.swing.JComponent c)
Installs and initializes all fields for this UI delegate.
|
boolean |
isPopupTrigger(java.awt.event.MouseEvent e)
Return true if given mouse event is a platform popup trigger, and false
otherwise
|
protected void |
uninstallDefaults()
This method uninstalls the defaults and sets any objects created during
install to null
|
protected void |
uninstallKeyboardActions()
Uninstalls any keyboard actions.
|
protected void |
uninstallListeners()
Unregisters all the listeners that this UI delegate was using.
|
void |
uninstallUI(javax.swing.JComponent c)
Performs the opposite of installUI.
|
protected javax.swing.JPopupMenu popupMenu
public BasicPopupMenuUI()
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent x)
JComponent, which should be a JMenuItem.x - The JComponent a UI is being created for.JComponent.public void installUI(javax.swing.JComponent c)
installUI in class javax.swing.plaf.ComponentUIc - The JComponent that is having this UI installed.ComponentUI.uninstallUI(javax.swing.JComponent),
JComponent.setUI(javax.swing.plaf.ComponentUI),
JComponent.updateUI()public void installDefaults()
JPopupMenu.protected void installListeners()
JMenuItem.protected void installKeyboardActions()
JPopupMenu.public void uninstallUI(javax.swing.JComponent c)
uninstallUI in class javax.swing.plaf.ComponentUIc - The JComponent that is having this UI uninstalled.ComponentUI.installUI(javax.swing.JComponent),
JComponent.setUI(javax.swing.plaf.ComponentUI),
JComponent.updateUI()protected void uninstallDefaults()
protected void uninstallListeners()
protected void uninstallKeyboardActions()
public java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
getMinimumSize in class javax.swing.plaf.ComponentUIc - The JComponent to find a size for.public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
getPreferredSize in class javax.swing.plaf.ComponentUIc - The JComponent to find a size for.public java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
getMaximumSize in class javax.swing.plaf.ComponentUIc - The JComponent to find a size for.public boolean isPopupTrigger(java.awt.event.MouseEvent e)
isPopupTrigger in class javax.swing.plaf.PopupMenuUIe - MouseEvent that is to be checked for popup trigger event