Class FormsSetup
java.lang.Object
com.jgoodies.forms.FormsSetup
Provides access to global Forms settings.
- Since:
- 1.8
- Version:
- $Revision: 1.21 $
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static ComponentFactoryHolds the global factory that is used as default for the per-instance component factory.private static final Stringprivate static booleanprivate static booleanThe global default for the enablement of the setLabelFor feature.private static booleanHolds the global default opaque state that can be overridden per builder. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentFactoryReturns the factory that is used as default for new builder's as they are created.static booleanReturns whether the debug tool tips are enabled or not.private static booleanstatic booleanReturns the global default for the enablement of the setLabelFor feature.static booleanstatic voidSets the global default that is used to initialize the per-instance component factory.static voidsetDebugToolTipsEnabled(boolean b) Enables or disables the debug tool tips.static voidsetLabelForFeatureEnabledDefault(boolean b) Sets the default value for the setLabelFor feature enablement.static voidsetOpaqueDefault(boolean b) Sets the global default value for a builder's opaque state that can be overridden per builder.
-
Field Details
-
DEBUG_TOOL_TIPS_ENABLED_KEY
- See Also:
-
componentFactoryDefault
Holds the global factory that is used as default for the per-instance component factory. -
labelForFeatureEnabledDefault
private static boolean labelForFeatureEnabledDefaultThe global default for the enablement of the setLabelFor feature. Turned on by default.- See Also:
-
opaqueDefault
private static boolean opaqueDefaultHolds 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
-
-
Constructor Details
-
FormsSetup
private FormsSetup()
-
-
Method Details
-
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
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()
-