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, darcula, maclight or macdark.
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 FlatLaf
FlatLaf.ActiveFont, FlatLaf.DisabledIconProvider -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final booleanprivate final Stringprivate final PropertiesFields inherited from class 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 PropertiesgetName()booleanisDark()private static PropertiesMethods inherited from class FlatLaf
applyAdditionalProperties, createActiveFontValue, createCompositeFont, disableWindowsD3Donscreen, equals, getCustomDefaultsSources, getDefaults, getDisabledIcon, getExtraDefaults, getGlobalExtraDefaults, getID, getPreferredFontFamily, getPreferredLightFontFamily, getPreferredMonospacedFontFamily, getPreferredSemiboldFontFamily, getStyleableInfos, getStyleableValue, getSupportsWindowDecorations, getSystemColorGetter, getUIKeyLightOrDarkPrefix, getUIKeyPlatformPrefixes, getUIKeySpecialPrefixes, 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, updateUILaterMethods inherited from class BasicLookAndFeel
createAudioAction, getAudioActionMap, initClassDefaults, initComponentDefaults, initSystemColorDefaults, loadSystemColors, playSoundMethods inherited from class 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:
getNamein classLookAndFeel
-
getDescription
- Specified by:
getDescriptionin classLookAndFeel
-
isDark
-
getProperties
-
getLafClassesForDefaultsLoading
- Overrides:
getLafClassesForDefaultsLoadingin classFlatLaf
-
getAdditionalDefaults
- Overrides:
getAdditionalDefaultsin classFlatLaf
-