Package de.alpharogroup.swing.plaf
Enum LookAndFeels
- java.lang.Object
-
- java.lang.Enum<LookAndFeels>
-
- de.alpharogroup.swing.plaf.LookAndFeels
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<LookAndFeels>
public enum LookAndFeels extends java.lang.Enum<LookAndFeels>
The enum classLookAndFeelsprovides constants with the fully qualified Names of look and feel classes.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GTKThe GTK look and feel classMETALThe METAL look and feel classMOTIFThe MOTIF look and feel classMULTIThe MULTI look and feel classNIMBUSThe NIMBUS look and feel classSYNTHThe SYNTH look and feel classSYSTEMThe SYSTEM look and feel classWINDOWSThe WINDOWS look and feel class
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LookAndFeelssetLookAndFeel(@NonNull LookAndFeels lookAndFeels, @NonNull java.awt.Component component)static LookAndFeelsvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static LookAndFeels[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GTK
public static final LookAndFeels GTK
The GTK look and feel class
-
METAL
public static final LookAndFeels METAL
The METAL look and feel class
-
MOTIF
public static final LookAndFeels MOTIF
The MOTIF look and feel class
-
MULTI
public static final LookAndFeels MULTI
The MULTI look and feel class
-
NIMBUS
public static final LookAndFeels NIMBUS
The NIMBUS look and feel class
-
SYNTH
public static final LookAndFeels SYNTH
The SYNTH look and feel class
-
SYSTEM
public static final LookAndFeels SYSTEM
The SYSTEM look and feel class
-
WINDOWS
public static final LookAndFeels WINDOWS
The WINDOWS look and feel class
-
-
Method Detail
-
values
public static LookAndFeels[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (LookAndFeels c : LookAndFeels.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LookAndFeels valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
setLookAndFeel
public static LookAndFeels setLookAndFeel(@NonNull @NonNull LookAndFeels lookAndFeels, @NonNull @NonNull java.awt.Component component) throws java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException, javax.swing.UnsupportedLookAndFeelException
- Parameters:
lookAndFeels- the look and feelscomponent- the component- Returns:
- the look and feels
- Throws:
java.lang.ClassNotFoundException- the class not found exceptionjava.lang.InstantiationException- the instantiation exceptionjava.lang.IllegalAccessException- the illegal access exceptionjavax.swing.UnsupportedLookAndFeelException- the unsupported look and feel exception
-
-