JIDE 3.5.15

com.jidesoft.popup
Class JidePopupFactory

java.lang.Object
  extended by com.jidesoft.popup.JidePopupFactory

public class JidePopupFactory
extends Object

This class creates instances of JidePopup components. It provides a consistent means for customizing popups without the need for a custom UI or overriding all methods that create popups


Constructor Summary
JidePopupFactory()
           
 
Method Summary
 JidePopup createPopup()
           
static int getPopupType()
          Get the type of popups that will automatically be created
static JidePopupFactory getSharedInstance()
          Returns the shared JidePopupFactory which can be used to obtain JidePopups.
static void setPopupType(int poupType)
          Sets the type to automatically create.
static void setSharedInstance(JidePopupFactory factory)
          Sets the JidePopupFactory that will be used to obtain JidePopups.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JidePopupFactory

public JidePopupFactory()
Method Detail

createPopup

public JidePopup createPopup()

setPopupType

public static void setPopupType(int poupType)
Sets the type to automatically create. This forces all created popups to be of the specified type. By default, we use LIGHT_WEIGHT_POPUP.

Parameters:
poupType - the popup type

setSharedInstance

public static void setSharedInstance(JidePopupFactory factory)
Sets the JidePopupFactory that will be used to obtain JidePopups. This will throw an IllegalArgumentException if factory is null.

Parameters:
factory - the shared factory
Throws:
IllegalArgumentException - if factory is null
See Also:
createPopup()

getPopupType

public static int getPopupType()
Get the type of popups that will automatically be created

Returns:
the type of popups that will automatically be created or -1 if the factory won't force a popup type.

getSharedInstance

public static JidePopupFactory getSharedInstance()
Returns the shared JidePopupFactory which can be used to obtain JidePopups.

Returns:
the shared factory

JIDE 3.5.15