FileDocCategorySizeDatePackage
MotifMenuUI.javaAPI DocJava SE 5 API3884Fri Aug 26 14:54:46 BST 2005com.sun.java.swing.plaf.motif

MotifMenuUI

public class MotifMenuUI extends BasicMenuUI
A Motif L&F implementation of MenuUI.

version
1.32 12/19/03
author
Georges Saab
author
Rich Schiavi

Fields Summary
Constructors Summary
Methods Summary
protected javax.swing.event.ChangeListenercreateChangeListener(javax.swing.JComponent c)

        return new MotifChangeHandler((JMenu)c, this);
    
protected javax.swing.event.MouseInputListenercreateMouseInputListener(javax.swing.JComponent c)

	return new MouseInputHandler();
    
public static javax.swing.plaf.ComponentUIcreateUI(javax.swing.JComponent x)

	return new MotifMenuUI();
    
public voidpaint(java.awt.Graphics g, javax.swing.JComponent c)

	MotifGraphicsUtils.paintMenuItem(g,c,checkIcon,arrowIcon,
					 selectionBackground, selectionForeground,
					 defaultTextIconGap);
    
private booleanpopupIsOpen(javax.swing.JMenu m, javax.swing.MenuElement[] me)

        int i;
        JPopupMenu pm = m.getPopupMenu();

        for(i=me.length-1;i>=0;i--) {
            if(me[i].getComponent() == pm)
                return true;
        }
        return false;