Quaqua 7.4.2 2011-07-05

ch.randelshofer.quaqua
Class QuaquaPopupMenuUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.PopupMenuUI
          extended by javax.swing.plaf.basic.BasicPopupMenuUI
              extended by ch.randelshofer.quaqua.QuaquaPopupMenuUI
All Implemented Interfaces:
QuaquaMenuPainterClient

public class QuaquaPopupMenuUI
extends javax.swing.plaf.basic.BasicPopupMenuUI
implements QuaquaMenuPainterClient

QuaquaPopupMenuUI.

Version:
$Id: QuaquaPopupMenuUI.java 378 2011-02-15 10:08:36Z wrandelshofer $
Author:
Werner Randelshofer

Field Summary
static int GRAB_EVENT_MASK
          Special mask for the UngrabEvent events, in addition to the public masks defined in AWTEvent.
static java.lang.String WINDOW_ALPHA_PROPERTY
           
 
Fields inherited from class javax.swing.plaf.basic.BasicPopupMenuUI
popupMenu
 
Constructor Summary
QuaquaPopupMenuUI()
           
 
Method Summary
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent x)
           
protected  void installListeners()
           
 void paintBackground(java.awt.Graphics g, javax.swing.JComponent component, int menuWidth, int menuHeight)
           
protected  void uninstallListeners()
           
 
Methods inherited from class javax.swing.plaf.basic.BasicPopupMenuUI
installDefaults, installKeyboardActions, installUI, isPopupTrigger, uninstallDefaults, uninstallKeyboardActions, uninstallUI
 
Methods inherited from class javax.swing.plaf.PopupMenuUI
getPopup
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, paint, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WINDOW_ALPHA_PROPERTY

public static final java.lang.String WINDOW_ALPHA_PROPERTY
See Also:
Constant Field Values

GRAB_EVENT_MASK

public static final int GRAB_EVENT_MASK
Special mask for the UngrabEvent events, in addition to the public masks defined in AWTEvent. Should be used as the mask value for Toolkit.addAWTEventListener. Copied here, because sun.awt.SunToolkit.GRAB_EVENT_MASK is only available from J2SE6 onwards.

See Also:
Constant Field Values
Constructor Detail

QuaquaPopupMenuUI

public QuaquaPopupMenuUI()
Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent x)

installListeners

protected void installListeners()
Overrides:
installListeners in class javax.swing.plaf.basic.BasicPopupMenuUI

uninstallListeners

protected void uninstallListeners()
Overrides:
uninstallListeners in class javax.swing.plaf.basic.BasicPopupMenuUI

paintBackground

public void paintBackground(java.awt.Graphics g,
                            javax.swing.JComponent component,
                            int menuWidth,
                            int menuHeight)
Specified by:
paintBackground in interface QuaquaMenuPainterClient

Copyright 2003-2007 (c) Werner Randelshofer.
All rights reserved.