Package com.jidesoft.popup
Class JidePopupFactory
- java.lang.Object
-
- com.jidesoft.popup.JidePopupFactory
-
public class JidePopupFactory extends java.lang.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
Constructors Constructor Description JidePopupFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description JidePopup
createPopup()
static int
getPopupType()
Get the type of popups that will automatically be createdstatic JidePopupFactory
getSharedInstance()
Returns the sharedJidePopupFactory
which can be used to obtainJidePopup
s.static void
setPopupType(int poupType)
Sets the type to automatically create.static void
setSharedInstance(JidePopupFactory factory)
Sets theJidePopupFactory
that will be used to obtainJidePopup
s.
-
-
-
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 theJidePopupFactory
that will be used to obtainJidePopup
s. This will throw anIllegalArgumentException
iffactory
is null.- Parameters:
factory
- the shared factory- Throws:
java.lang.IllegalArgumentException
- iffactory
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 sharedJidePopupFactory
which can be used to obtainJidePopup
s.- Returns:
- the shared factory
-
-