Package com.formdev.flatlaf
Class FlatPropertiesLaf
java.lang.Object
javax.swing.LookAndFeel
javax.swing.plaf.basic.BasicLookAndFeel
com.formdev.flatlaf.FlatLaf
com.formdev.flatlaf.FlatPropertiesLaf
- All Implemented Interfaces:
Serializable
A Flat LaF that is able to load UI defaults from properties passed to the constructor.
Specify the base theme in the properties with @baseTheme=<baseTheme>
.
Allowed values for <baseTheme>
are light
(the default), dark
,
intellij
or darcula
.
The properties are applied after loading the base theme and may overwrite base properties. All features of FlatLaf properties files are available.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.formdev.flatlaf.FlatLaf
FlatLaf.ActiveFont, FlatLaf.DisabledIconProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
private final boolean
private final String
private final Properties
Fields inherited from class com.formdev.flatlaf.FlatLaf
NULL_VALUE
-
Constructor Summary
ConstructorsConstructorDescriptionFlatPropertiesLaf
(String name, File propertiesFile) FlatPropertiesLaf
(String name, InputStream in) FlatPropertiesLaf
(String name, Properties properties) -
Method Summary
Modifier and TypeMethodDescriptionprotected Properties
getName()
boolean
isDark()
private static Properties
Methods inherited from class com.formdev.flatlaf.FlatLaf
applyAdditionalDefaults, createActiveFontValue, createCompositeFont, equals, getCustomDefaultsSources, getDefaults, getDisabledIcon, getExtraDefaults, getGlobalExtraDefaults, getID, getPreferredFontFamily, getPreferredLightFontFamily, getPreferredMonospacedFontFamily, getPreferredSemiboldFontFamily, getStyleableInfos, getStyleableValue, getSupportsWindowDecorations, getSystemColorGetter, hashCode, hideMnemonics, initialize, initIconColors, install, installLafInfo, isLafDark, isNativeLookAndFeel, isShowMnemonics, isSupportedLookAndFeel, isUseNativeWindowDecorations, parseDefaultsValue, registerCustomDefaultsSource, registerCustomDefaultsSource, registerCustomDefaultsSource, registerCustomDefaultsSource, registerUIDefaultsGetter, repaintAllFramesAndDialogs, revalidateAndRepaintAllFramesAndDialogs, runWithUIDefaultsGetter, setExtraDefaults, setGlobalExtraDefaults, setPreferredFontFamily, setPreferredLightFontFamily, setPreferredMonospacedFontFamily, setPreferredSemiboldFontFamily, setSystemColorGetter, setup, setUseNativeWindowDecorations, showMnemonics, supportsNativeWindowDecorations, uninitialize, unregisterCustomDefaultsSource, unregisterCustomDefaultsSource, unregisterCustomDefaultsSource, unregisterCustomDefaultsSource, unregisterUIDefaultsGetter, updateUI, updateUILater
Methods inherited from class javax.swing.plaf.basic.BasicLookAndFeel
createAudioAction, getAudioActionMap, initClassDefaults, initComponentDefaults, initSystemColorDefaults, loadSystemColors, playSound
Methods inherited from class javax.swing.LookAndFeel
getDesktopPropertyValue, getDisabledSelectedIcon, getLayoutStyle, installBorder, installColors, installColorsAndFont, installProperty, loadKeyBindings, makeComponentInputMap, makeIcon, makeInputMap, makeKeyBindings, provideErrorFeedback, toString, uninstallBorder
-
Field Details
-
name
-
baseTheme
-
dark
private final boolean dark -
properties
-
-
Constructor Details
-
FlatPropertiesLaf
- Throws:
IOException
-
FlatPropertiesLaf
- Throws:
IOException
-
FlatPropertiesLaf
-
-
Method Details
-
loadProperties
- Throws:
IOException
-
getName
- Specified by:
getName
in classLookAndFeel
-
getDescription
- Specified by:
getDescription
in classLookAndFeel
-
isDark
public boolean isDark() -
getProperties
-
getLafClassesForDefaultsLoading
- Overrides:
getLafClassesForDefaultsLoading
in classFlatLaf
-
getAdditionalDefaults
- Overrides:
getAdditionalDefaults
in classFlatLaf
-