com.jgoodies.looks.common

Class ShadowPopup

public final class ShadowPopup extends Popup

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.

Version: $Revision: 1.6 $

Author: Andrej Golovnin

See Also: ShadowPopupBorder ShadowPopupFactory

Method Summary
static booleancanSnapshot()
voidhide()
Hides and disposes of the Popup.
voidshow()
Makes the Popup visible.

Method Detail

canSnapshot

public static boolean canSnapshot()

hide

public void hide()
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.

In addition to the superclass behavior, we reset the stored horizontal and vertical drop shadows - if any.

show

public void show()
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.
Copyright © 2001-2007 JGoodies Karsten Lentzsch. All Rights Reserved.