Package generic.theme
Enum Class LafType
- All Implemented Interfaces:
Serializable
,Comparable<LafType>
,Constable
An enumeration that represents the set of supported
LookAndFeel
s-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic LafType
Returns the LafType for the given name or null if the given name does not match any typesstatic LafType
Returns the default LafType for the current platform.Gets the preferred display string for this type.getLookAndFeelManager
(ApplicationThemeManager themeManager) Returns a LookAndFeelManager that can install and update theLookAndFeel
associated with this LafType.getName()
Returns the name of this LafType.boolean
Returns true if theLookAndFeel
represented by this LafType is supported on the current platform.toString()
boolean
Returns true if the LookAndFeel represented by this LafType uses application dark default values.static LafType
Returns the enum constant of this class with the specified name.static LafType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
METAL
-
NIMBUS
-
GTK
-
MOTIF
-
FLAT_LIGHT
-
FLAT_DARK
-
WINDOWS
-
WINDOWS_CLASSIC
-
MAC
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getDisplayString
Gets the preferred display string for this type.- Returns:
- the preferred display string.
-
getName
Returns the name of this LafType.- Returns:
- the name of this LafType.
-
usesDarkDefaults
public boolean usesDarkDefaults()Returns true if the LookAndFeel represented by this LafType uses application dark default values.- Returns:
- true if the LookAndFeel represented by this LafType uses application dark default values.
-
fromName
Returns the LafType for the given name or null if the given name does not match any types- Parameters:
name
- the name to search a LafType for.- Returns:
- the LafType for the given name or null if the given name does not match any types
-
isSupported
public boolean isSupported()Returns true if theLookAndFeel
represented by this LafType is supported on the current platform.- Returns:
- true if the
LookAndFeel
represented by this LafType is supported on the current platform
-
getLookAndFeelManager
Returns a LookAndFeelManager that can install and update theLookAndFeel
associated with this LafType.- Parameters:
themeManager
- The application ThemeManager- Returns:
- a LookAndFeelManager that can install and update the
LookAndFeel
associated with this LafType.
-
getDefaultLookAndFeel
Returns the default LafType for the current platform.- Returns:
- the default LafType for the current platform.
-
toString
-