Package com.jgoodies.forms.util
Class FormUtils
- java.lang.Object
-
- com.jgoodies.forms.util.FormUtils
-
public final class FormUtils extends java.lang.Object
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
Fields Modifier and Type Field Description private static java.lang.Boolean
cachedIsLafAqua
Holds the cached result of the Aqua l&f check.private static javax.swing.LookAndFeel
cachedLookAndFeel
Holds the LookAndFeel that has been used to computed cached values.
-
Constructor Summary
Constructors Modifier Constructor Description private
FormUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
clearLookAndFeelBasedCaches()
Clears cached internal Forms state that is based on the Look&Feel, for example dialog base units.(package private) static void
ensureValidCache()
static boolean
isLafAqua()
Lazily checks and answers whether the Aqua look&feel is active.
-
-
-
Field Detail
-
cachedLookAndFeel
private static javax.swing.LookAndFeel 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
private static java.lang.Boolean cachedIsLafAqua
Holds the cached result of the Aqua l&f check. Is invalidated if a look&feel change has been detected in#ensureValidCache
.
-
-
Method Detail
-
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()
-
-