javax.swing
Class PopupFactory.HeavyWeightPopup

java.lang.Object
  extended byjavax.swing.Popup
      extended byjavax.swing.PopupFactory.HeavyWeightPopup
Enclosing class:
PopupFactory

private static class PopupFactory.HeavyWeightPopup
extends Popup

Popup implementation that uses a Window as the popup.


Nested Class Summary
 
Nested classes inherited from class javax.swing.Popup
Popup.DefaultFrame, Popup.HeavyWeightWindow
 
Field Summary
private static Object heavyWeightPopupCacheKey
           
 
Fields inherited from class javax.swing.Popup
 
Constructor Summary
private PopupFactory.HeavyWeightPopup()
           
 
Method Summary
(package private)  void _dispose()
           
(package private)  void dispose()
          As we recycle the Window, we don't want to dispose it, thus this method does nothing, instead use _dipose which will handle the disposing.
(package private) static Popup getHeavyWeightPopup(Component owner, Component contents, int ownerX, int ownerY)
          Returns either a new or recycled Popup containing the specified children.
private static Map getHeavyWeightPopupCache()
          Returns the cache to use for heavy weight popups.
private static PopupFactory.HeavyWeightPopup getRecycledHeavyWeightPopup(Window w)
          Returns a previously disposed heavy weight Popup associated with window.
 void hide()
          Hides and disposes of the Popup.
private static void recycleHeavyWeightPopup(PopupFactory.HeavyWeightPopup popup)
          Recycles the passed in HeavyWeightPopup.
 
Methods inherited from class javax.swing.Popup
createComponent, getComponent, pack, reset, show
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

heavyWeightPopupCacheKey

private static final Object heavyWeightPopupCacheKey
Constructor Detail

PopupFactory.HeavyWeightPopup

private PopupFactory.HeavyWeightPopup()
Method Detail

getHeavyWeightPopup

static Popup getHeavyWeightPopup(Component owner,
                                 Component contents,
                                 int ownerX,
                                 int ownerY)
Returns either a new or recycled Popup containing the specified children.


getRecycledHeavyWeightPopup

private static PopupFactory.HeavyWeightPopup getRecycledHeavyWeightPopup(Window w)
Returns a previously disposed heavy weight Popup associated with window. This will return null if there is no HeavyWeightPopup associated with window.


getHeavyWeightPopupCache

private static Map getHeavyWeightPopupCache()
Returns the cache to use for heavy weight popups. Maps from Window to a List of HeavyWeightPopups.


recycleHeavyWeightPopup

private static void recycleHeavyWeightPopup(PopupFactory.HeavyWeightPopup popup)
Recycles the passed in HeavyWeightPopup.


hide

public void hide()
Description copied from class: Popup
Hides and disposes of the Popup. Once a Popup has been disposed you should no longer invoke methods on it. A disposed Popup may be reclaimed and later used based on the PopupFactory. As such, if you invoke methods on a disposed Popup, indeterminate behavior will result.

Overrides:
hide in class Popup

dispose

void dispose()
As we recycle the Window, we don't want to dispose it, thus this method does nothing, instead use _dipose which will handle the disposing.

Overrides:
dispose in class Popup

_dispose

void _dispose()