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
public class FlatPropertiesLaf extends FlatLaf
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>
arelight
(the default),dark
,intellij
ordarcula
.The properties are applied after loading the base theme and may overwrite base properties. All features of FlatLaf properties files are available.
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.formdev.flatlaf.FlatLaf
FlatLaf.DisabledIconProvider
-
-
Field Summary
-
Fields inherited from class com.formdev.flatlaf.FlatLaf
NULL_VALUE
-
-
Constructor Summary
Constructors Constructor Description FlatPropertiesLaf(String name, File propertiesFile)
FlatPropertiesLaf(String name, InputStream in)
FlatPropertiesLaf(String name, Properties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Properties
getAdditionalDefaults()
String
getDescription()
protected ArrayList<Class<?>>
getLafClassesForDefaultsLoading()
String
getName()
Properties
getProperties()
boolean
isDark()
-
Methods inherited from class com.formdev.flatlaf.FlatLaf
createActiveFontValue, equals, 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
-
-
-
-
Constructor Detail
-
FlatPropertiesLaf
public FlatPropertiesLaf(String name, File propertiesFile) throws IOException
- Throws:
IOException
-
FlatPropertiesLaf
public FlatPropertiesLaf(String name, InputStream in) throws IOException
- Throws:
IOException
-
FlatPropertiesLaf
public FlatPropertiesLaf(String name, Properties properties)
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getName
in classLookAndFeel
-
getDescription
public String getDescription()
- Specified by:
getDescription
in classLookAndFeel
-
getProperties
public Properties getProperties()
-
getLafClassesForDefaultsLoading
protected ArrayList<Class<?>> getLafClassesForDefaultsLoading()
- Overrides:
getLafClassesForDefaultsLoading
in classFlatLaf
-
getAdditionalDefaults
protected Properties getAdditionalDefaults()
- Overrides:
getAdditionalDefaults
in classFlatLaf
-
-