APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.java.swing.plaf.motif

public Class MotifPopupMenuUI

extends BasicPopupMenuUI
Class Inheritance
Imports
java.awt.Dimension, .Font, .FontMetrics, .Insets, .LayoutManager, java.awt.event.MouseEvent, javax.swing.JComponent, .JPopupMenu, .UIDefaults, .UIManager, javax.swing.border.Border, javax.swing.event.ChangeEvent, .ChangeListener, javax.swing.plaf.ComponentUI, javax.swing.plaf.basic.BasicPopupMenuUI, sun.swing.SwingUtilities2

A Motif L&F implementation of PopupMenuUI.
Authors
Georges Saab, Rich Schiavi

Field Summary

Modifier and TypeField and Description
private static Border
private Font
Inherited from javax.swing.plaf.basic.BasicPopupMenuUI:
popupMenu

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected ChangeListener
public static ComponentUI
createUI(JComponent x)

Hides javax.swing.plaf.basic.BasicPopupMenuUI.createUI.

Constructs a new instance of BasicPopupMenuUI.

public Dimension
getPreferredSize(JComponent c)

Overrides javax.swing.plaf.ComponentUI.getPreferredSize.

Returns the specified component's preferred size appropriate for the look and feel.

public boolean
isPopupTrigger(MouseEvent e)

Overrides javax.swing.plaf.basic.BasicPopupMenuUI.isPopupTrigger.

Returns whether or not the given MouseEvent is the popup menu trigger event for the platform

Inherited from javax.swing.plaf.basic.BasicPopupMenuUI:
installDefaultsinstallKeyboardActionsinstallListenersinstallUIuninstallDefaultsuninstallKeyboardActionsuninstallListenersuninstallUI

Field Detail

borderback to summary
private static Border border
titleFontback to summary
private Font titleFont

Constructor Detail

MotifPopupMenuUIback to summary
public MotifPopupMenuUI()

Method Detail

createChangeListenerback to summary
protected ChangeListener createChangeListener(JPopupMenu m)
createUIback to summary
public static ComponentUI createUI(JComponent x)

Hides javax.swing.plaf.basic.BasicPopupMenuUI.createUI.

Doc from javax.swing.plaf.basic.BasicPopupMenuUI.createUI.

Constructs a new instance of BasicPopupMenuUI.

getPreferredSizeback to summary
public Dimension getPreferredSize(JComponent c)

Overrides javax.swing.plaf.ComponentUI.getPreferredSize.

Doc from javax.swing.plaf.ComponentUI.getPreferredSize.

Returns the specified component's preferred size appropriate for the look and feel. If null is returned, the preferred size will be calculated by the component's layout manager instead (this is the preferred approach for any component with a specific layout manager installed). The default implementation of this method returns null.

Annotations
@Override
isPopupTriggerback to summary
public boolean isPopupTrigger(MouseEvent e)

Overrides javax.swing.plaf.basic.BasicPopupMenuUI.isPopupTrigger.

Doc from javax.swing.plaf.PopupMenuUI.isPopupTrigger.

Returns whether or not the given MouseEvent is the popup menu trigger event for the platform

Annotations
@Override
@SuppressWarnings:deprecation