| java.lang.Object javax.swing.Popup contrib.com.jgoodies.looks.common.ShadowPopup
ShadowPopup | final public class ShadowPopup extends Popup (Code) | | Does all the magic for getting popups with drop shadows. It adds the drop
shadow border to the Popup, in #show it snapshots the screen
background as needed, and in #hide it cleans up all changes
made before.
author: Andrej Golovnin version: $Revision: 1.10 $ See Also: com.jgoodies.looks.common.ShadowPopupBorder See Also: com.jgoodies.looks.common.ShadowPopupFactory |
Field Summary | |
final protected static FadeKind | MENU_APPEAR |
Method Summary | |
public static boolean | canSnapshot() | static Popup | getInstance(Component owner, Component contents, int x, int y, Popup delegate) Returns a previously used ShadowPopup , or a new one if
none of the popups have been recycled. | public void | hide() Hides and disposes of the Popup . | public void | show() Makes the Popup visible. |
MENU_APPEAR | final protected static FadeKind MENU_APPEAR(Code) | | |
canSnapshot | public static boolean canSnapshot()(Code) | | |
getInstance | static Popup getInstance(Component owner, Component contents, int x, int y, Popup delegate)(Code) | | Returns a previously used ShadowPopup , or a new one if
none of the popups have been recycled.
|
hide | public void hide()(Code) | | Hides and disposes of the 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.
In addition to the superclass behavior, we reset the stored horizontal
and vertical drop shadows - if any.
|
show | public void show()(Code) | | Makes the Popup visible. If the popup has a heavy-weight
container, we try to snapshot the background. If the Popup
is currently visible, it remains visible.
|
|
|