javax.swing.plaf.basic
public class BasicPopupMenuUI extends PopupMenuUI
Field Summary | |
---|---|
protected JPopupMenu | popupMenu |
Constructor Summary | |
---|---|
BasicPopupMenuUI()
Creates a new BasicPopupMenuUI object. |
Method Summary | |
---|---|
static ComponentUI | createUI(JComponent x)
Factory method to create a BasicPopupMenuUI for the given {@link
JComponent}, which should be a {@link JMenuItem}.
|
Dimension | getMaximumSize(JComponent c)
This method returns the minimum size of the JPopupMenu.
|
Dimension | getMinimumSize(JComponent c)
This method returns the minimum size of the JPopupMenu.
|
Dimension | getPreferredSize(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 {@link JPopupMenu}. |
protected void | installKeyboardActions()
This method installs the keyboard actions for this {@link JPopupMenu}. |
protected void | installListeners()
This method installs the listeners for the {@link JMenuItem}. |
void | installUI(JComponent c)
Installs and initializes all fields for this UI delegate. |
boolean | isPopupTrigger(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(JComponent c)
Performs the opposite of installUI. |
Parameters: x The {@link JComponent} a UI is being created for.
Returns: A BasicPopupMenuUI for the {@link JComponent}.
Parameters: c The JComponent to find a size for.
Returns: The minimum size.
Parameters: c The JComponent to find a size for.
Returns: The minimum size.
Parameters: c The JComponent to find a size for.
Returns: The preferred size.
Parameters: c The {@link JComponent} that is having this UI installed.
Parameters: e MouseEvent that is to be checked for popup trigger event
Returns: true if given mouse event is a platform popup trigger, and false otherwise
Parameters: c The {@link JComponent} that is having this UI uninstalled.