Class ShadowPopup
- java.lang.Object
-
- javax.swing.Popup
-
- com.inductiveautomation.ignition.client.util.gui.popup.ShadowPopup
-
public final class ShadowPopup extends javax.swing.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.- See Also:
com.jgoodies.looks.common.ShadowPopupBorder
,com.jgoodies.looks.common.ShadowPopupFactory
-
-
Constructor Summary
Constructors Constructor Description ShadowPopup()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
canSnapshot()
void
hide()
Hides and disposes of thePopup
.void
show()
Makes thePopup
visible.
-
-
-
Method Detail
-
canSnapshot
public static boolean canSnapshot()
-
hide
public void hide()
Hides and disposes of thePopup
. Once aPopup
has been disposed you should no longer invoke methods on it. Adispose
dPopup
may be reclaimed and later used based on thePopupFactory
. As such, if you invoke methods on adisposed
Popup
, indeterminate behavior will result.In addition to the superclass behavior, we reset the stored horizontal and vertical drop shadows - if any.
- Overrides:
hide
in classjavax.swing.Popup
-
show
public void show()
Makes thePopup
visible. If the popup has a heavy-weight container, we try to snapshot the background. If thePopup
is currently visible, it remains visible.- Overrides:
show
in classjavax.swing.Popup
-
-