de.muntjak.tinylookandfeel
Class TinyPopupFactory

java.lang.Object
  extended by javax.swing.PopupFactory
      extended by de.muntjak.tinylookandfeel.TinyPopupFactory

public class TinyPopupFactory
extends javax.swing.PopupFactory

TinyPopupFactory is responsible for creating special Popup instances, able to capture screen images used as background for popup menus having a shadow border.

Since:
1.4.0

Field Summary
static java.lang.String COMPONENT_ORIENTATION_KEY
           
static java.lang.String HORIZONTAL_IMAGE_KEY
           
static java.lang.String SHADOW_POPUP_KEY
           
static java.lang.String VERTICAL_IMAGE_KEY
           
 
Method Summary
static void addDialog(javax.swing.JDialog dialog)
           
static void closeDialogs()
          Closes all non-modal dialogs currently showing.
 javax.swing.Popup getPopup(java.awt.Component owner, java.awt.Component contents, int x, int y)
           
static void install()
           
static boolean isPopupShadowEnabled()
           
static void uninstall()
           
 
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
 

Field Detail

SHADOW_POPUP_KEY

public static final java.lang.String SHADOW_POPUP_KEY
See Also:
Constant Field Values

VERTICAL_IMAGE_KEY

public static final java.lang.String VERTICAL_IMAGE_KEY
See Also:
Constant Field Values

HORIZONTAL_IMAGE_KEY

public static final java.lang.String HORIZONTAL_IMAGE_KEY
See Also:
Constant Field Values

COMPONENT_ORIENTATION_KEY

public static final java.lang.String COMPONENT_ORIENTATION_KEY
See Also:
Constant Field Values
Method Detail

getPopup

public javax.swing.Popup getPopup(java.awt.Component owner,
                                  java.awt.Component contents,
                                  int x,
                                  int y)
                           throws java.lang.IllegalArgumentException
Overrides:
getPopup in class javax.swing.PopupFactory
Throws:
java.lang.IllegalArgumentException

addDialog

public static void addDialog(javax.swing.JDialog dialog)

closeDialogs

public static void closeDialogs()
Closes all non-modal dialogs currently showing.


install

public static void install()

isPopupShadowEnabled

public static boolean isPopupShadowEnabled()

uninstall

public static void uninstall()