|
||||||||||
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.ContainerPopup javax.swing.PopupFactory.LightWeightPopup
Popup implementation that uses a JPanel as the popup.
Nested Class Summary |
Nested classes inherited from class javax.swing.Popup |
Popup.DefaultFrame, Popup.HeavyWeightWindow |
Field Summary | |
private static Object |
lightWeightPopupCacheKey
|
(package private) Component |
owner
Component we are to be added to. |
(package private) int |
x
Desired x location. |
(package private) int |
y
Desired y location. |
Fields inherited from class javax.swing.Popup |
|
Constructor Summary | |
private |
PopupFactory.LightWeightPopup()
|
Method Summary | |
(package private) Component |
createComponent(Component owner)
Creates the Component to use as the parent of the Popup .
|
(package private) boolean |
fitsOnScreen()
Returns true if the Popup can fit on the screen. |
(package private) static Popup |
getLightWeightPopup(Component owner,
Component contents,
int ownerX,
int ownerY)
Returns a light weight Popup implementation. |
private static List |
getLightWeightPopupCache()
Returns the cache to use for heavy weight popups. |
private static PopupFactory.LightWeightPopup |
getRecycledLightWeightPopup()
Returns a previously used LightWeightPopup , or null
if none of the popups have been recycled. |
void |
hide()
Hides and disposes of the Popup . |
(package private) boolean |
overlappedByOwnedWindow()
|
void |
pack()
Causes the Popup to be sized to fit the preferred size
of the Component it contains. |
private static void |
recycleLightWeightPopup(PopupFactory.LightWeightPopup popup)
Recycles the LightWeightPopup popup . |
(package private) void |
reset(Component owner,
Component contents,
int ownerX,
int ownerY)
Resets the Popup to an initial state. |
void |
show()
Makes the Popup visible. |
Methods inherited from class javax.swing.Popup |
dispose, getComponent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final Object lightWeightPopupCacheKey
Component owner
int x
int y
Constructor Detail |
private PopupFactory.LightWeightPopup()
Method Detail |
static Popup getLightWeightPopup(Component owner, Component contents, int ownerX, int ownerY)
Popup
implementation. If
the Popup
needs more space that in available in
owner
, this will return null.
private static List getLightWeightPopupCache()
private static void recycleLightWeightPopup(PopupFactory.LightWeightPopup popup)
popup
.
private static PopupFactory.LightWeightPopup getRecycledLightWeightPopup()
LightWeightPopup
, or null
if none of the popups have been recycled.
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 PopupFactory.ContainerPopup
public void show()
Popup
Popup
visible. If the Popup
is
currently visible, this has no effect.
show
in class Popup
Component createComponent(Component owner)
Popup
Popup
.
The default implementation creates a Window
, subclasses
should override.
createComponent
in class Popup
void reset(Component owner, Component contents, int ownerX, int ownerY)
Popup
to an initial state.
reset
in class PopupFactory.ContainerPopup
public void pack()
Popup
Popup
to be sized to fit the preferred size
of the Component
it contains.
pack
in class Popup
boolean overlappedByOwnedWindow()
boolean fitsOnScreen()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |