Class FlatPropertiesLaf

  • All Implemented Interfaces:
    java.io.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> 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:
    Serialized Form
    • Field Detail

      • name

        private final java.lang.String name
      • baseTheme

        private final java.lang.String baseTheme
      • dark

        private final boolean dark
      • properties

        private final java.util.Properties properties
    • Constructor Detail

      • FlatPropertiesLaf

        public FlatPropertiesLaf​(java.lang.String name,
                                 java.io.File propertiesFile)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • FlatPropertiesLaf

        public FlatPropertiesLaf​(java.lang.String name,
                                 java.io.InputStream in)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • FlatPropertiesLaf

        public FlatPropertiesLaf​(java.lang.String name,
                                 java.util.Properties properties)
    • Method Detail

      • loadProperties

        private static java.util.Properties loadProperties​(java.io.InputStream in)
                                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • getName

        public java.lang.String getName()
        Specified by:
        getName in class javax.swing.LookAndFeel
      • getDescription

        public java.lang.String getDescription()
        Specified by:
        getDescription in class javax.swing.LookAndFeel
      • isDark

        public boolean isDark()
        Specified by:
        isDark in class FlatLaf
      • getProperties

        public java.util.Properties getProperties()