Interface FlatClientProperties


  • public interface FlatClientProperties
    Defines/documents own client properties used in FlatLaf.
    • Method Detail

      • clientPropertyEquals

        static boolean clientPropertyEquals​(JComponent c,
                                            String key,
                                            Object value)
        Checks whether a client property of a component has the given value.
      • clientPropertyBoolean

        static boolean clientPropertyBoolean​(JComponent c,
                                             String key,
                                             boolean defaultValue)
        Checks whether a client property of a component is a boolean and returns its value. If the client property is not set, or not a boolean, defaultValue is returned.
      • clientPropertyBooleanStrict

        static Boolean clientPropertyBooleanStrict​(JComponent c,
                                                   String key,
                                                   Boolean defaultValue)
        Checks whether a client property of a component is a Boolean and returns its value. If the client property is not set, or not a Boolean, defaultValue is returned.
      • clientPropertyInt

        static int clientPropertyInt​(JComponent c,
                                     String key,
                                     int defaultValue)
        Checks whether a client property of a component is an integer and returns its value. If the client property is not set, or not an integer, defaultValue is returned.
      • clientPropertyColor

        static Color clientPropertyColor​(JComponent c,
                                         String key,
                                         Color defaultValue)
        Checks whether a client property of a component is a color and returns its value. If the client property is not set, or not a color, defaultValue is returned.
      • clientProperty

        static <T> T clientProperty​(JComponent c,
                                    String key,
                                    T defaultValue,
                                    Class<T> type)
        Returns the value of the specified client property if it is an instance of the specified type. Otherwise, defaultValue is returned.
        Since:
        2