com.jgoodies.forms.util
Class Utilities

java.lang.Object
  extended by com.jgoodies.forms.util.Utilities

public final class Utilities
extends java.lang.Object

Consists only of static utility methods. This class may be merged with the FormLayoutUtils extra - or not. *

Version:
$Revision: 47513 $
Author:
Karsten Lentzsch

Nested Class Summary
private static class Utilities.LookAndFeelChangeHandler
          Listens to changes of the Look and Feel and invalidates the cache.
 
Field Summary
private static java.lang.Boolean cachedIsLafAqua
          Holds the cached result of the Aqua l&f check.
private static boolean lafChangeHandlerRegistered
          Describes whether the LookAndFeelChangeHandler has been registered with the UIManager or not.
 
Constructor Summary
private Utilities()
           
 
Method Summary
private static boolean computeIsLafAqua()
          Computes and answers whether the Aqua look&feel is active.
private static void ensureLookAndFeelChangeHandlerRegistered()
           
static boolean isLafAqua()
          Lazily checks and answers whether the Aqua look&feel is active.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cachedIsLafAqua

private static java.lang.Boolean cachedIsLafAqua
Holds the cached result of the Aqua l&f check. Is invalidated by the LookAndFeelChangeHandler if the look&feel changes.


lafChangeHandlerRegistered

private static boolean lafChangeHandlerRegistered
Describes whether the LookAndFeelChangeHandler has been registered with the UIManager or not. It is registered lazily when the first cached l&f state is computed.

Constructor Detail

Utilities

private Utilities()
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

ensureLookAndFeelChangeHandlerRegistered

private static void ensureLookAndFeelChangeHandlerRegistered()

computeIsLafAqua

private static boolean computeIsLafAqua()
Computes and answers whether the Aqua look&feel is active.

Returns:
true if the current look&feel is Aqua