Package com.jgoodies.forms
Class FormsSetup
- java.lang.Object
-
- com.jgoodies.forms.FormsSetup
-
public class FormsSetup extends java.lang.Object
Provides access to global Forms settings.- Since:
- 1.8
- Version:
- $Revision: 1.21 $
-
-
Field Summary
Fields Modifier and Type Field Description private static ComponentFactory
componentFactoryDefault
Holds the global factory that is used as default for the per-instance component factory.private static java.lang.String
DEBUG_TOOL_TIPS_ENABLED_KEY
private static boolean
debugToolTipsEnabled
private static boolean
labelForFeatureEnabledDefault
The global default for the enablement of the setLabelFor feature.private static boolean
opaqueDefault
Holds the global default opaque state that can be overridden per builder.
-
Constructor Summary
Constructors Modifier Constructor Description private
FormsSetup()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ComponentFactory
getComponentFactoryDefault()
Returns the factory that is used as default for new builder's as they are created.static boolean
getDebugToolTipsEnabledDefault()
Returns whether the debug tool tips are enabled or not.private static boolean
getDebugToolTipSystemProperty()
static boolean
getLabelForFeatureEnabledDefault()
Returns the global default for the enablement of the setLabelFor feature.static boolean
getOpaqueDefault()
static void
setComponentFactoryDefault(ComponentFactory factory)
Sets the global default that is used to initialize the per-instance component factory.static void
setDebugToolTipsEnabled(boolean b)
Enables or disables the debug tool tips.static void
setLabelForFeatureEnabledDefault(boolean b)
Sets the default value for the setLabelFor feature enablement.static void
setOpaqueDefault(boolean b)
Sets the global default value for a builder's opaque state that can be overridden per builder.
-
-
-
Field Detail
-
DEBUG_TOOL_TIPS_ENABLED_KEY
private static final java.lang.String DEBUG_TOOL_TIPS_ENABLED_KEY
- See Also:
- Constant Field Values
-
componentFactoryDefault
private static ComponentFactory componentFactoryDefault
Holds the global factory that is used as default for the per-instance component factory.
-
labelForFeatureEnabledDefault
private static boolean labelForFeatureEnabledDefault
The global default for the enablement of the setLabelFor feature. Turned on by default.
-
opaqueDefault
private static boolean opaqueDefault
Holds the global default opaque state that can be overridden per builder. Since the Forms 1.6, the default value isfalse
, in other words, panels will not be opaque.
-
debugToolTipsEnabled
private static boolean debugToolTipsEnabled
-
-
Method Detail
-
getComponentFactoryDefault
public static ComponentFactory getComponentFactoryDefault()
Returns the factory that is used as default for new builder's as they are created. This default itself is lazily initialized as theDefaultComponentFactory
.- Returns:
- the factory that is used as default for new builder instances
-
setComponentFactoryDefault
public static void setComponentFactoryDefault(ComponentFactory factory)
Sets the global default that is used to initialize the per-instance component factory.- Parameters:
factory
- the factory to be used for all new builder instances that do not override the default
-
getLabelForFeatureEnabledDefault
public static boolean getLabelForFeatureEnabledDefault()
Returns the global default for the enablement of the setLabelFor feature. This can be overridden per builder - where applicable - using#labelForFeatureEnabled(boolean)
. The feature is globally disabled by default.- Returns:
- true for globally enabled, false for globally disabled
-
setLabelForFeatureEnabledDefault
public static void setLabelForFeatureEnabledDefault(boolean b)
Sets the default value for the setLabelFor feature enablement. This can be overridden per builder - where applicable - using#labelForFeatureEnabled(boolean)
. The default value is used to set the initial PanelBuilder setting for this feature. The feature is globally disabled by default.- Parameters:
b
- true for globally enabled, false for globally disabled
-
getOpaqueDefault
public static boolean getOpaqueDefault()
- Returns:
- the global default value for a builder's opaque state that can be overridden per builder
-
setOpaqueDefault
public static void setOpaqueDefault(boolean b)
Sets the global default value for a builder's opaque state that can be overridden per builder. Since the Forms 1.6, the default value isfalse
, in other words, panels will not be opaque.- Parameters:
b
- the new value
-
getDebugToolTipsEnabledDefault
public static boolean getDebugToolTipsEnabledDefault()
Returns whether the debug tool tips are enabled or not.- Returns:
- true if debug tool tips are enabled, false if disabled
-
setDebugToolTipsEnabled
public static void setDebugToolTipsEnabled(boolean b)
Enables or disables the debug tool tips.- Parameters:
b
- true to enable, false to disable
-
getDebugToolTipSystemProperty
private static boolean getDebugToolTipSystemProperty()
-
-