|
|||||||||
| Home >> All >> javax >> swing >> plaf >> [ basic overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
javax.swing.plaf.basic
Class BasicPopupMenuUI

java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.PopupMenuUI
javax.swing.plaf.basic.BasicPopupMenuUI
- public class BasicPopupMenuUI
- extends javax.swing.plaf.PopupMenuUI
UI Delegate for JPopupMenu
| Nested Class Summary | |
private class |
BasicPopupMenuUI.PopupMenuHandler
This listener handles PopupMenuEvents fired by JPopupMenu |
private class |
BasicPopupMenuUI.TopWindowListener
ComponentListener that listens to Component Events fired by the top - level window to which popup menu belongs. |
| Field Summary | |
protected javax.swing.JPopupMenu |
popupMenu
|
private javax.swing.event.PopupMenuListener |
popupMenuListener
|
(package private) BasicPopupMenuUI.TopWindowListener |
topWindowListener
|
| Constructor Summary | |
BasicPopupMenuUI()
Creates a new BasicPopupMenuUI object. |
|
| Method Summary | |
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent x)
Factory method to create a BasicPopupMenuUI for the given javax.swing.JComponent, which should be a javax.swing.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 javax.swing.JPopupMenu. |
protected void |
installKeyboardActions()
This method installs the keyboard actions for this javax.swing.JPopupMenu. |
protected void |
installListeners()
This method installs the listeners for the javax.swing.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. |
| Methods inherited from class javax.swing.plaf.PopupMenuUI |
getPopup |
| Methods inherited from class javax.swing.plaf.ComponentUI |
contains, getAccessibleChild, getAccessibleChildrenCount, paint, update |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
popupMenu
protected javax.swing.JPopupMenu popupMenu
popupMenuListener
private transient javax.swing.event.PopupMenuListener popupMenuListener
topWindowListener
BasicPopupMenuUI.TopWindowListener topWindowListener
| Constructor Detail |
BasicPopupMenuUI
public BasicPopupMenuUI()
- Creates a new BasicPopupMenuUI object.
| Method Detail |
createUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent x)
- Factory method to create a BasicPopupMenuUI for the given javax.swing.JComponent, which should be a javax.swing.JMenuItem.
installUI
public void installUI(javax.swing.JComponent c)
- Installs and initializes all fields for this UI delegate. Any properties
of the UI that need to be initialized and/or set to defaults will be
done now. It will also install any listeners necessary.
installDefaults
public void installDefaults()
- This method installs the defaults that are defined in the Basic look
and feel for this javax.swing.JPopupMenu.
installListeners
protected void installListeners()
- This method installs the listeners for the javax.swing.JMenuItem.
installKeyboardActions
protected void installKeyboardActions()
throws gnu.classpath.NotImplementedException
- This method installs the keyboard actions for this javax.swing.JPopupMenu.
uninstallUI
public void uninstallUI(javax.swing.JComponent c)
- Performs the opposite of installUI. Any properties or resources that need
to be cleaned up will be done now. It will also uninstall any listeners
it has. In addition, any properties of this UI will be nulled.
uninstallDefaults
protected void uninstallDefaults()
- This method uninstalls the defaults and sets any objects created during
install to null
uninstallListeners
protected void uninstallListeners()
- Unregisters all the listeners that this UI delegate was using.
uninstallKeyboardActions
protected void uninstallKeyboardActions()
throws gnu.classpath.NotImplementedException
- Uninstalls any keyboard actions.
getMinimumSize
public java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
- This method returns the minimum size of the JPopupMenu.
getPreferredSize
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
- This method returns the preferred size of the JPopupMenu.
getMaximumSize
public java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
- This method returns the minimum size of the JPopupMenu.
isPopupTrigger
public boolean isPopupTrigger(java.awt.event.MouseEvent e)
- Return true if given mouse event is a platform popup trigger, and false
otherwise
|
|||||||||
| Home >> All >> javax >> swing >> plaf >> [ basic overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC