|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.PopupFactory
com.jgoodies.looks.common.ShadowPopupFactory
public final class ShadowPopupFactory
The JGoodies Looks implementation of PopupFactory
Adds a drop shadow border to all popups except ComboBox popups
It is installed by the JGoodies Plastic L&F, as well as b
the JGoodies Windows L&F during the Look&Feel initialization
see PlasticLookAndFeel.initialize() an
WindowsLookAndFeel.initialize().
install()Note: To be used in a sandbox environment, this PopupFactor
requires two AWT permissions: createRobot an
readDisplayPixels. The reason for it is, that in the case o
the heavy weight popups this PopupFactory uses a Robot to snapsho
the screen background to simulate the drop shadow effect.
AWTPermission,
Robot,
Popup,
LookAndFeel.initialize(),
LookAndFeel.uninitialize()| Method Summary | |
|---|---|
Popup |
getPopup(Component owner,
Component contents,
int x,
int y)
Creates a Popup for the Component ownercontents. |
static void |
install()
Installs the ShadowPopupFactory as the shared popup factor on non-Mac platforms. |
static void |
uninstall()
Uninstalls the ShadowPopupFactory and restores the origina popup factory as the new shared popup factory. |
| Methods inherited from class javax.swing.PopupFactory |
|---|
getSharedInstance, setSharedInstance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void install()
#uninstall.#getPopup.
uninstall()public static void uninstall()
install()
public Popup getPopup(Component owner,
Component contents,
int x,
int y)
Popup for the Component ownercontents. In addition t
the superclass behavior, we try to return a Popup that has a drop shadow
if popup drop shadows are active - as returned b
Options#isPopupDropShadowActive.owner is used to determine which Window the ne
Popup will parent the Component th
Popup creates to. A null owner implies ther
is no valid parent. x an
y specify the preferred initial location to plac
the Popup at. Based on screen size, or other paramaters
the Popup may not display at x an
y.
#getPopup, not the one in th stored factory, because the popup type is set in this instance not in the stored one.
getPopup in class PopupFactoryowner - Component mouse coordinates are relative to, may be nullcontents - Contents of the Popupx - Initial x screen coordinatey - Initial y screen coordinate
IllegalArgumentException - if contents is nullOptions.isPopupDropShadowActive()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||