JavaTM 2 Platform
Std. Ed. v1.3.1

javax.swing
Class DefaultPopupFactory

java.lang.Object
  |
  +--javax.swing.DefaultPopupFactory
All Implemented Interfaces:
PopupFactory

public class DefaultPopupFactory
extends Object
implements PopupFactory


Inner Class Summary
protected  class DefaultPopupFactory.JPanelPopup
          A class used to popup a JPanel.
protected  class DefaultPopupFactory.PanelPopup
          A class used to popup an AWT panel.
protected  class DefaultPopupFactory.WindowPopup
          A class used to popup a window.
 
Constructor Summary
DefaultPopupFactory()
           
 
Method Summary
protected  Popup createHeavyWeightPopup(Component comp, Component invoker)
           
protected  Popup createLightWeightPopup(Component comp, Component invoker)
           
protected  Popup createMediumWeightPopup(Component comp, Component invoker)
           
static boolean getDefaultLightWeightPopupEnabled()
          Return the default value for the lightWeightPopupEnabled property.
 Popup getPopup(Component comp, Component invoker, int x, int y)
           
 boolean isLightWeightPopupEnabled()
           
static void setDefaultLightWeightPopupEnabled(boolean aFlag)
          Set the default value for the lightWeightPopupEnabled property.
 void setLightWeightPopupEnabled(boolean aFlag)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPopupFactory

public DefaultPopupFactory()
Method Detail

setDefaultLightWeightPopupEnabled

public static void setDefaultLightWeightPopupEnabled(boolean aFlag)
Set the default value for the lightWeightPopupEnabled property.

getDefaultLightWeightPopupEnabled

public static boolean getDefaultLightWeightPopupEnabled()
Return the default value for the lightWeightPopupEnabled property.

setLightWeightPopupEnabled

public void setLightWeightPopupEnabled(boolean aFlag)
Specified by:
setLightWeightPopupEnabled in interface PopupFactory

isLightWeightPopupEnabled

public boolean isLightWeightPopupEnabled()
Specified by:
isLightWeightPopupEnabled in interface PopupFactory

createLightWeightPopup

protected Popup createLightWeightPopup(Component comp,
                                       Component invoker)

createMediumWeightPopup

protected Popup createMediumWeightPopup(Component comp,
                                        Component invoker)

createHeavyWeightPopup

protected Popup createHeavyWeightPopup(Component comp,
                                       Component invoker)

getPopup

public Popup getPopup(Component comp,
                      Component invoker,
                      int x,
                      int y)
Specified by:
getPopup in interface PopupFactory

JavaTM 2 Platform
Std. Ed. v1.3.1

Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.