Package com.jgoodies.forms.util
Class FormUtils
java.lang.Object
com.jgoodies.forms.util.FormUtils
A library-internal class that consists only of static utility methods.
Note: This class is not part of the public Forms API.
It's intended for library implementation purposes only.
The class's API may change at any time.
- Since:
- 1.2
- Version:
- $Revision: 1.14 $
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static Boolean
Holds the cached result of the Aqua l&f check.private static LookAndFeel
Holds the LookAndFeel that has been used to computed cached values. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Clears cached internal Forms state that is based on the Look&Feel, for example dialog base units.(package private) static void
static boolean
Lazily checks and answers whether the Aqua look&feel is active.
-
Field Details
-
cachedLookAndFeel
Holds the LookAndFeel that has been used to computed cached values. If the current L&F differs from this cached value, the caches must be cleared. -
cachedIsLafAqua
Holds the cached result of the Aqua l&f check. Is invalidated if a look&feel change has been detected in#ensureValidCache
.
-
-
Constructor Details
-
FormUtils
private FormUtils()
-
-
Method Details
-
isLafAqua
public static boolean isLafAqua()Lazily checks and answers whether the Aqua look&feel is active.- Returns:
true
if the current look&feel is Aqua
-
clearLookAndFeelBasedCaches
public static void clearLookAndFeelBasedCaches()Clears cached internal Forms state that is based on the Look&Feel, for example dialog base units.There's typically no need to call this method directly. It'll be invoked automatically, if the L&F has been changed via
UIManager.setLookAndFeel(javax.swing.LookAndFeel)
and cached data is requested. It's been made public to allow cache invalidation for cases where the L&F is changed temporarily by replacing the UIDefaults, for example in a visual editor.- Since:
- 1.2.1
-
ensureValidCache
static void ensureValidCache()
-