public class

MotifPopupMenuUI

extends BasicPopupMenuUI
java.lang.Object
   ↳ javax.swing.plaf.ComponentUI
     ↳ javax.swing.plaf.PopupMenuUI
       ↳ javax.swing.plaf.basic.BasicPopupMenuUI
         ↳ com.sun.java.swing.plaf.motif.MotifPopupMenuUI

Class Overview

A Motif L&F implementation of PopupMenuUI.

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. A future release of Swing will provide support for long term persistence.

Summary

[Expand]
Inherited Fields
From class javax.swing.plaf.basic.BasicPopupMenuUI
Public Constructors
MotifPopupMenuUI()
Public Methods
static ComponentUI createUI(JComponent x)
Dimension getPreferredSize(JComponent c)
Returns the specified component's preferred size appropriate for the look and feel.
boolean isPopupTrigger(MouseEvent e)
Protected Methods
ChangeListener createChangeListener(JPopupMenu m)
[Expand]
Inherited Methods
From class javax.swing.plaf.basic.BasicPopupMenuUI
From class javax.swing.plaf.PopupMenuUI
From class javax.swing.plaf.ComponentUI
From class java.lang.Object

Public Constructors

public MotifPopupMenuUI ()

Public Methods

public static ComponentUI createUI (JComponent x)

public Dimension getPreferredSize (JComponent c)

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.

Parameters
c the component whose preferred size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components

public boolean isPopupTrigger (MouseEvent e)

Protected Methods

protected ChangeListener createChangeListener (JPopupMenu m)