|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.Popup javax.swing.PopupFactory.HeavyWeightPopup
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 |
private static final Object heavyWeightPopupCacheKey
Constructor Detail |
private PopupFactory.HeavyWeightPopup()
Method Detail |
static Popup getHeavyWeightPopup(Component owner, Component contents, int ownerX, int ownerY)
Popup
containing
the specified children.
private static PopupFactory.HeavyWeightPopup getRecycledHeavyWeightPopup(Window w)
Popup
associated with window
. This will return null if
there is no HeavyWeightPopup
associated with
window
.
private static Map getHeavyWeightPopupCache()
Window
to a List
of
HeavyWeightPopup
s.
private static void recycleHeavyWeightPopup(PopupFactory.HeavyWeightPopup popup)
HeavyWeightPopup
.
public void hide()
Popup
Popup
. Once a Popup
has been disposed you should no longer invoke methods on it. A
dispose
d 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.
hide
in class Popup
void dispose()
Window
, we don't want to dispose it,
thus this method does nothing, instead use _dipose
which will handle the disposing.
dispose
in class Popup
void _dispose()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |